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

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

Powered by Google App Engine
This is Rietveld 408576698