summaryrefslogtreecommitdiff
path: root/lib/libm/arch/amd64/e_sqrtl.S
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2009-11-06 23:30:22 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2009-11-06 23:30:22 +0000
commitfbd3f95af0a5cdf792221bd52a4a9f5b82b7dd10 (patch)
treea75b7793a076f7de8a35187bcd15baa60ff8e57d /lib/libm/arch/amd64/e_sqrtl.S
parentd2d0d683581901c3e15080e6a4c3ed6640430b28 (diff)
Provide assembly version of sqrtl(3).
ok pirofti@
Diffstat (limited to 'lib/libm/arch/amd64/e_sqrtl.S')
-rw-r--r--lib/libm/arch/amd64/e_sqrtl.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libm/arch/amd64/e_sqrtl.S b/lib/libm/arch/amd64/e_sqrtl.S
new file mode 100644
index 00000000000..37bc91cf8bd
--- /dev/null
+++ b/lib/libm/arch/amd64/e_sqrtl.S
@@ -0,0 +1,12 @@
+/* $OpenBSD: e_sqrtl.S,v 1.1 2009/11/06 23:30:21 kettenis Exp $ */
+/*
+ * Written by J.T. Conklin <jtc@netbsd.org>.
+ * Public domain.
+ */
+
+#include <machine/asm.h>
+
+ENTRY(sqrtl)
+ fldt 8(%rsp)
+ fsqrt
+ ret