summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-11-05 20:14:33 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-11-05 20:14:33 +0000
commitf151de983fbddb3f03159901963c29f64d1c139f (patch)
tree23b35b7474f01cf729712243438b55686c04f1d3 /lib
parent2912e135272e1b5142e5a571259c1abc96542b65 (diff)
Provide assembly version of sqrtl(3).
ok otto@
Diffstat (limited to 'lib')
-rw-r--r--lib/libm/Makefile3
-rw-r--r--lib/libm/arch/i387/e_sqrtl.S12
2 files changed, 14 insertions, 1 deletions
diff --git a/lib/libm/Makefile b/lib/libm/Makefile
index 3e987580f9b..89ebcc67296 100644
--- a/lib/libm/Makefile
+++ b/lib/libm/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.72 2009/10/26 21:06:19 kettenis Exp $
+# $OpenBSD: Makefile,v 1.73 2009/11/05 20:14:32 kettenis Exp $
# $NetBSD: Makefile,v 1.28 1995/11/20 22:06:19 jtc Exp $
#
# @(#)Makefile 5.1beta 93/09/24
@@ -26,6 +26,7 @@ ARCH_SRCS = s_copysign.S s_copysignf.S
.PATH: ${.CURDIR}/arch/i387
ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_fmod.S e_log.S e_log10.S \
e_remainder.S e_remainderf.S e_scalb.S e_sqrt.S e_sqrtf.S \
+ e_sqrtl.S \
invtrig.c \
s_atan.S s_atanf.S s_ceil.S s_ceilf.S s_copysign.S s_copysignf.S \
s_cos.S s_cosf.S s_floor.S s_floorf.S \
diff --git a/lib/libm/arch/i387/e_sqrtl.S b/lib/libm/arch/i387/e_sqrtl.S
new file mode 100644
index 00000000000..d18d25f6dd6
--- /dev/null
+++ b/lib/libm/arch/i387/e_sqrtl.S
@@ -0,0 +1,12 @@
+/* $OpenBSD: e_sqrtl.S,v 1.1 2009/11/05 20:14:32 kettenis Exp $ */
+/*
+ * Written by J.T. Conklin <jtc@netbsd.org>.
+ * Public domain.
+ */
+
+#include <machine/asm.h>
+
+ENTRY(sqrtl)
+ fldt 4(%esp)
+ fsqrt
+ ret