| OLD | NEW |
| 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) |
| OLD | NEW |