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

Side by Side Diff: sysdeps/i386/fpu/e_log10l.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_log10f.S ('k') | sysdeps/i386/fpu/e_log2.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 * 4 *
5 * Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>. 5 * Adapted for `long double' by Ulrich Drepper <drepper@cygnus.com>.
6 * 6 *
7 * Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>. 7 * Changed to use fyl2xp1 for values near 1, <drepper@cygnus.com>.
8 */ 8 */
9 9
10 #include <machine/asm.h> 10 #include <machine/asm.h>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 jc 3f // in case x is NaN or ±Inf 48 jc 3f // in case x is NaN or ±Inf
49 4: fsubl MO(one) // x-1 : x : log10(2) 49 4: fsubl MO(one) // x-1 : x : log10(2)
50 fld %st // x-1 : x-1 : x : log10(2) 50 fld %st // x-1 : x-1 : x : log10(2)
51 fabs // |x-1| : x-1 : x : log10(2) 51 fabs // |x-1| : x-1 : x : log10(2)
52 fcompl MO(limit) // x-1 : x : log10(2) 52 fcompl MO(limit) // x-1 : x : log10(2)
53 fnstsw // x-1 : x : log10(2) 53 fnstsw // x-1 : x : log10(2)
54 andb $0x45, %ah 54 andb $0x45, %ah
55 jz 2f 55 jz 2f
56 fstp %st(1) // x-1 : log10(2) 56 fstp %st(1) // x-1 : log10(2)
57 fyl2xp1 // log10(x) 57 fyl2xp1 // log10(x)
58 » ret 58 » NACLRET
59 59
60 2: fstp %st(0) // x : log10(2) 60 2: fstp %st(0) // x : log10(2)
61 fyl2x // log10(x) 61 fyl2x // log10(x)
62 » ret 62 » NACLRET
63 63
64 3: jp 4b // in case x is ±Inf 64 3: jp 4b // in case x is ±Inf
65 fstp %st(1) 65 fstp %st(1)
66 fstp %st(1) 66 fstp %st(1)
67 » ret 67 » NACLRET
68 END(__ieee754_log10l) 68 END(__ieee754_log10l)
OLDNEW
« no previous file with comments | « sysdeps/i386/fpu/e_log10f.S ('k') | sysdeps/i386/fpu/e_log2.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698