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

Side by Side Diff: sysdeps/i386/fpu/s_nearbyint.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_lrintl.S ('k') | sysdeps/i386/fpu/s_nearbyintf.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 use as nearbyint by Ulrich Drepper <drepper@cygnus.com>. */ 5 /* Adapted for use as nearbyint by Ulrich Drepper <drepper@cygnus.com>. */
6 6
7 #include <machine/asm.h> 7 #include <machine/asm.h>
8 8
9 ENTRY(__nearbyint) 9 ENTRY(__nearbyint)
10 fldl 4(%esp) 10 fldl 4(%esp)
11 pushl %eax 11 pushl %eax
12 cfi_adjust_cfa_offset (4) 12 cfi_adjust_cfa_offset (4)
13 pushl %ecx 13 pushl %ecx
14 cfi_adjust_cfa_offset (4) 14 cfi_adjust_cfa_offset (4)
15 fnstcw (%esp) 15 fnstcw (%esp)
16 movl (%esp), %eax 16 movl (%esp), %eax
17 orl $0x20, %eax 17 orl $0x20, %eax
18 movl %eax, 4(%esp) 18 movl %eax, 4(%esp)
19 fldcw 4(%esp) 19 fldcw 4(%esp)
20 frndint 20 frndint
21 fclex 21 fclex
22 fldcw (%esp) 22 fldcw (%esp)
23 popl %ecx 23 popl %ecx
24 cfi_adjust_cfa_offset (-4) 24 cfi_adjust_cfa_offset (-4)
25 popl %eax 25 popl %eax
26 cfi_adjust_cfa_offset (-4) 26 cfi_adjust_cfa_offset (-4)
27 » ret 27 » NACLRET
28 END (__nearbyint) 28 END (__nearbyint)
29 weak_alias (__nearbyint, nearbyint) 29 weak_alias (__nearbyint, nearbyint)
OLDNEW
« no previous file with comments | « sysdeps/i386/fpu/s_lrintl.S ('k') | sysdeps/i386/fpu/s_nearbyintf.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698