about summary refs log tree commit diff
path: root/sysdeps/libm-i387/s_finitef.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/s_finitef.S')
-rw-r--r--sysdeps/libm-i387/s_finitef.S7
1 files changed, 4 insertions, 3 deletions
diff --git a/sysdeps/libm-i387/s_finitef.S b/sysdeps/libm-i387/s_finitef.S
index 51b4d0d536..dabb71a115 100644
--- a/sysdeps/libm-i387/s_finitef.S
+++ b/sysdeps/libm-i387/s_finitef.S
@@ -6,9 +6,10 @@
 
 ENTRY(__finitef)
 	movl	4(%esp),%eax
-	orl	$0x807fffff, %eax
-	incl	%eax
-	shrl	$31, %eax
+	movl    $0xFF7FFFFF,%ecx
+	subl    %eax,%ecx
+	xorl    %ecx,%eax
+	shrl    $31,%eax
 	ret
 END (__finitef)
 weak_alias (__finitef, finitef)