diff options
Diffstat (limited to 'sysdeps/i386/fpu/e_exp2.S')
-rw-r--r-- | sysdeps/i386/fpu/e_exp2.S | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/sysdeps/i386/fpu/e_exp2.S b/sysdeps/i386/fpu/e_exp2.S index b75a63a0b3..fc16a96053 100644 --- a/sysdeps/i386/fpu/e_exp2.S +++ b/sysdeps/i386/fpu/e_exp2.S @@ -5,13 +5,9 @@ */ #include <machine/asm.h> +#include <i386-math-asm.h> - .section .rodata.cst8,"aM",@progbits,8 - - .p2align 3 - .type dbl_min,@object -dbl_min: .byte 0, 0, 0, 0, 0, 0, 0x10, 0 - ASM_SIZE_DIRECTIVE(dbl_min) +DEFINE_DBL_MIN #ifdef PIC # define MO(op) op##@GOTOFF(%ecx) @@ -44,22 +40,8 @@ ENTRY(__ieee754_exp2) faddp /* 2^(fract(x)) */ fscale /* e^x */ fstp %st(1) - fldl MO(dbl_min) - fld %st(1) - fucompp - fnstsw - sahf - jnc 3f - subl $8, %esp - cfi_adjust_cfa_offset (8) - fld %st(0) - fmul %st(0) - fstpl (%esp) - fstpl (%esp) - fldl (%esp) - addl $8, %esp - cfi_adjust_cfa_offset (-8) -3: ret + DBL_NARROW_EVAL_UFLOW_NONNEG_NAN + ret 1: testl $0x200, %eax /* Test sign. */ jz 2f /* If positive, jump. */ |