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

Side by Side Diff: sysdeps/i386/fpu/s_cosl.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_cosf.S ('k') | sysdeps/i386/fpu/s_expm1.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 7
8 #include <machine/asm.h> 8 #include <machine/asm.h>
9 9
10 RCSID("$NetBSD: $") 10 RCSID("$NetBSD: $")
11 11
12 ENTRY(__cosl) 12 ENTRY(__cosl)
13 fldt 4(%esp) 13 fldt 4(%esp)
14 fcos 14 fcos
15 fnstsw %ax 15 fnstsw %ax
16 testl $0x400,%eax 16 testl $0x400,%eax
17 jnz 1f 17 jnz 1f
18 » ret 18 » NACLRET
19 .align ALIGNARG(4) 19 .align ALIGNARG(4)
20 1: fldpi 20 1: fldpi
21 fadd %st(0) 21 fadd %st(0)
22 fxch %st(1) 22 fxch %st(1)
23 2: fprem1 23 2: fprem1
24 fnstsw %ax 24 fnstsw %ax
25 testl $0x400,%eax 25 testl $0x400,%eax
26 jnz 2b 26 jnz 2b
27 fstp %st(1) 27 fstp %st(1)
28 fcos 28 fcos
29 » ret 29 » NACLRET
30 END (__cosl) 30 END (__cosl)
31 weak_alias (__cosl, cosl) 31 weak_alias (__cosl, cosl)
OLDNEW
« no previous file with comments | « sysdeps/i386/fpu/s_cosf.S ('k') | sysdeps/i386/fpu/s_expm1.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698