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

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

Powered by Google App Engine
This is Rietveld 408576698