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.S12
1 files changed, 4 insertions, 8 deletions
diff --git a/sysdeps/libm-i387/s_finitef.S b/sysdeps/libm-i387/s_finitef.S
index ee26c875a5..51b4d0d536 100644
--- a/sysdeps/libm-i387/s_finitef.S
+++ b/sysdeps/libm-i387/s_finitef.S
@@ -1,18 +1,14 @@
 /*
- * Written by J.T. Conklin <jtc@netbsd.org>.
- * Public domain.
+ * Written by Joe Keane <jgk@jgk.org>.
  */
 
 #include <machine/asm.h>
 
-RCSID("$NetBSD: s_finitef.S,v 1.3 1995/05/09 00:00:02 jtc Exp $")
-
 ENTRY(__finitef)
 	movl	4(%esp),%eax
-	andl	$0x7f800000, %eax
-	cmpl	$0x7f800000, %eax
-	setne	%al
-	andl	$0x000000ff, %eax
+	orl	$0x807fffff, %eax
+	incl	%eax
+	shrl	$31, %eax
 	ret
 END (__finitef)
 weak_alias (__finitef, finitef)