ENTRY(__ieee754_pow)
fldl 12(%esp) // y
fxam
+
+#ifdef PIC
+ call 1f
+1: popl %ecx
+ addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ecx
+#endif
+
fnstsw
movb %ah, %dl
andb $0x45, %ah
cmpb $0x01, %ah // is y == NaN ?
je 30f
-#ifdef PIC
- call 1f
-1: popl %ecx
- addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ecx
-#endif
-
fldl 4(%esp) // x : y
subl $8,%esp
andb $1, %al
jz 24f // jump if not odd
cmpl $0xffe00000, %edx
- jbe 24f // does not fit in mantissa bits
+ jae 24f // does not fit in mantissa bits
// It's an odd integer.
fldl MO(mzero)
ret
ENTRY(__ieee754_powf)
flds 8(%esp) // y
fxam
+
+#ifdef PIC
+ call 1f
+1: popl %ecx
+ addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ecx
+#endif
+
fnstsw
movb %ah, %dl
andb $0x45, %ah
cmpb $0x01, %ah // is y == NaN ?
je 30f
-#ifdef PIC
- call 1f
-1: popl %ecx
- addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ecx
-#endif
-
flds 4(%esp) // x : y
subl $4, %esp
testb $1, %dl
jz 24f // jump if not odd
cmpl $0xff000000, %edx
- jbe 24f // does not fit in mantissa bits
+ jae 24f // does not fit in mantissa bits
// It's an odd integer.
fldl MO(mzero)
ret