about summary refs log tree commit diff
path: root/sysdeps/libm-i387/s_finite.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/s_finite.S')
-rw-r--r--sysdeps/libm-i387/s_finite.S12
1 files changed, 4 insertions, 8 deletions
diff --git a/sysdeps/libm-i387/s_finite.S b/sysdeps/libm-i387/s_finite.S
index 7c67e1906f..384fc1c79e 100644
--- a/sysdeps/libm-i387/s_finite.S
+++ b/sysdeps/libm-i387/s_finite.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_finite.S,v 1.4 1995/05/08 23:57:41 jtc Exp $")
-
 ENTRY(__finite)
 	movl	8(%esp),%eax
-	andl	$0x7ff00000, %eax
-	cmpl	$0x7ff00000, %eax
-	setne	%al
-	andl	$0x000000ff, %eax
+	orl	$0x800fffff, %eax
+	incl	%eax
+	shrl	$31, %eax
 	ret
 END (__finite)
 weak_alias (__finite, finite)