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.S17
1 files changed, 17 insertions, 0 deletions
diff --git a/sysdeps/libm-i387/s_finite.S b/sysdeps/libm-i387/s_finite.S
new file mode 100644
index 0000000000..a65aa6a1e8
--- /dev/null
+++ b/sysdeps/libm-i387/s_finite.S
@@ -0,0 +1,17 @@
+/*
+ * Written by J.T. Conklin <jtc@netbsd.org>.
+ * Public domain.
+ */
+
+#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
+	setnel	%al
+	andl	$0x000000ff, %eax
+	ret
+weak_alias (__finite, finite)