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

Side by Side Diff: sysdeps/i386/fpu/s_sin.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/s_significandf.S ('k') | sysdeps/i386/fpu/s_sincos.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 5
6 #include <machine/asm.h> 6 #include <machine/asm.h>
7 7
8 RCSID("$NetBSD: s_sin.S,v 1.5 1995/05/09 00:25:54 jtc Exp $") 8 RCSID("$NetBSD: s_sin.S,v 1.5 1995/05/09 00:25:54 jtc Exp $")
9 9
10 ENTRY(__sin) 10 ENTRY(__sin)
11 fldl 4(%esp) 11 fldl 4(%esp)
12 fsin 12 fsin
13 fnstsw %ax 13 fnstsw %ax
14 testl $0x400,%eax 14 testl $0x400,%eax
15 jnz 1f 15 jnz 1f
16 » ret 16 » NACLRET
17 .align ALIGNARG(4) 17 .align ALIGNARG(4)
18 1: fldpi 18 1: fldpi
19 fadd %st(0) 19 fadd %st(0)
20 fxch %st(1) 20 fxch %st(1)
21 2: fprem1 21 2: fprem1
22 fnstsw %ax 22 fnstsw %ax
23 testl $0x400,%eax 23 testl $0x400,%eax
24 jnz 2b 24 jnz 2b
25 fstp %st(1) 25 fstp %st(1)
26 fsin 26 fsin
27 » ret 27 » NACLRET
28 END (__sin) 28 END (__sin)
29 weak_alias (__sin, sin) 29 weak_alias (__sin, sin)
OLDNEW
« no previous file with comments | « sysdeps/i386/fpu/s_significandf.S ('k') | sysdeps/i386/fpu/s_sincos.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698