aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu/s_atanf.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/fpu/s_atanf.S')
-rw-r--r--sysdeps/i386/fpu/s_atanf.S25
1 files changed, 4 insertions, 21 deletions
diff --git a/sysdeps/i386/fpu/s_atanf.S b/sysdeps/i386/fpu/s_atanf.S
index da3c2a64b5..0589c1135e 100644
--- a/sysdeps/i386/fpu/s_atanf.S
+++ b/sysdeps/i386/fpu/s_atanf.S
@@ -4,15 +4,11 @@
*/
#include <machine/asm.h>
+#include <i386-math-asm.h>
RCSID("$NetBSD: s_atanf.S,v 1.3 1995/05/08 23:51:33 jtc Exp $")
- .section .rodata.cst4,"aM",@progbits,4
-
- .p2align 2
- .type flt_min,@object
-flt_min: .byte 0, 0, 0x80, 0
- ASM_SIZE_DIRECTIVE(flt_min)
+DEFINE_FLT_MIN
#ifdef PIC
# define MO(op) op##@GOTOFF(%ecx)
@@ -28,20 +24,7 @@ ENTRY(__atanf)
flds 4(%esp)
fld1
fpatan
- flds MO(flt_min)
- fld %st(1)
- fabs
- fucompp
- fnstsw
- sahf
- jnc 1f
- subl $4, %esp
- cfi_adjust_cfa_offset (4)
- fld %st(0)
- fmul %st(0)
- fstps (%esp)
- addl $4, %esp
- cfi_adjust_cfa_offset (-4)
-1: ret
+ FLT_CHECK_FORCE_UFLOW
+ ret
END (__atanf)
weak_alias (__atanf, atanf)