aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/i386/fpu/bits
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/fpu/bits')
-rw-r--r--sysdeps/i386/fpu/bits/mathinline.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/sysdeps/i386/fpu/bits/mathinline.h b/sysdeps/i386/fpu/bits/mathinline.h
index aa532cea05..ee00f5881a 100644
--- a/sysdeps/i386/fpu/bits/mathinline.h
+++ b/sysdeps/i386/fpu/bits/mathinline.h
@@ -581,13 +581,7 @@ __MATH_INLINE int __finite (double __x) __attribute__ ((__const__));
__MATH_INLINE int
__finite (double __x)
{
- register int __result;
- __asm__ __volatile__
- ("orl $0x800fffff, %0\n\t"
- "incl %0\n\t"
- "shrl $31, %0"
- : "=r" (__result) : "0" (((int *) &__x)[1]) : "cc");
- return __result;
+ return ((((int *) &__x)[1] | 0x800fffff) + 1) >> 31;
}
/* Miscellaneous functions */