summaryrefslogtreecommitdiffstats
path: root/libm/i387/s_scalbnf.S
diff options
context:
space:
mode:
Diffstat (limited to 'libm/i387/s_scalbnf.S')
-rw-r--r--libm/i387/s_scalbnf.S19
1 files changed, 19 insertions, 0 deletions
diff --git a/libm/i387/s_scalbnf.S b/libm/i387/s_scalbnf.S
new file mode 100644
index 0000000..3e1ac41
--- /dev/null
+++ b/libm/i387/s_scalbnf.S
@@ -0,0 +1,19 @@
+/*
+ * Written by J.T. Conklin <jtc@netbsd.org>.
+ * Public domain.
+ */
+
+#include <machine/asm.h>
+
+__FBSDID("$FreeBSD: src/lib/msun/i387/s_scalbnf.S,v 1.2 2005/03/07 04:52:43 das Exp $");
+/* RCSID("$NetBSD: s_scalbnf.S,v 1.4 1999/01/02 05:15:40 kristerw Exp $") */
+
+ENTRY(scalbnf)
+ fildl 8(%esp)
+ flds 4(%esp)
+ fscale
+ fstp %st(1) /* bug fix for fp stack overflow */
+ ret
+
+.globl CNAME(ldexpf)
+.set CNAME(ldexpf),CNAME(scalbnf)