Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1064)

Side by Side Diff: sysdeps/i386/fpu/e_acosf.S

Issue 3539003: Fix up RET instructions in sysdeps/i386/fpu (Closed) Base URL: ssh://gitrw.chromium.org/nacl-glibc
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sysdeps/i386/fpu/e_acos.S ('k') | sysdeps/i386/fpu/e_acosh.S » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Written by J.T. Conklin <jtc@netbsd.org>. 2 * Written by J.T. Conklin <jtc@netbsd.org>.
3 * Public domain. 3 * Public domain.
4 * Adapted for float type by Ulrich Drepper <drepper@cygnus.com>. 4 * Adapted for float type by Ulrich Drepper <drepper@cygnus.com>.
5 */ 5 */
6 6
7 #include <machine/asm.h> 7 #include <machine/asm.h>
8 8
9 RCSID("$NetBSD: $") 9 RCSID("$NetBSD: $")
10 10
11 /* acos = atan (sqrt(1 - x^2) / x) */ 11 /* acos = atan (sqrt(1 - x^2) / x) */
12 ENTRY(__ieee754_acosf) 12 ENTRY(__ieee754_acosf)
13 flds 4(%esp) /* x */ 13 flds 4(%esp) /* x */
14 fld %st 14 fld %st
15 fmul %st(0) /* x^2 */ 15 fmul %st(0) /* x^2 */
16 fld1 16 fld1
17 fsubp /* 1 - x^2 */ 17 fsubp /* 1 - x^2 */
18 fsqrt /* sqrt (1 - x^2) */ 18 fsqrt /* sqrt (1 - x^2) */
19 fxch %st(1) 19 fxch %st(1)
20 fpatan 20 fpatan
21 » ret 21 » NACLRET
22 END (__ieee754_acosf) 22 END (__ieee754_acosf)
OLDNEW
« no previous file with comments | « sysdeps/i386/fpu/e_acos.S ('k') | sysdeps/i386/fpu/e_acosh.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698