summaryrefslogtreecommitdiff
path: root/lib/libm/arch/amd64/s_lrint.S
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2009-04-10 11:30:34 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2009-04-10 11:30:34 +0000
commitdf62b489778e826707f1061b9c2c9add99d9d7af (patch)
tree0c5464566b4a9b0ed903d6b61887793a8f79961b /lib/libm/arch/amd64/s_lrint.S
parent2762d6caa1d744de66700e843278eb5b10efd288 (diff)
lrint, llrint, lrintf, llrintf for amd64. ok kettenis@, oga@
Diffstat (limited to 'lib/libm/arch/amd64/s_lrint.S')
-rw-r--r--lib/libm/arch/amd64/s_lrint.S12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libm/arch/amd64/s_lrint.S b/lib/libm/arch/amd64/s_lrint.S
new file mode 100644
index 00000000000..5cc27122fad
--- /dev/null
+++ b/lib/libm/arch/amd64/s_lrint.S
@@ -0,0 +1,12 @@
+/* $OpenBSD: s_lrint.S,v 1.1 2009/04/10 11:30:33 martynas Exp $ */
+
+/*
+ * Written by Martynas Venckus. Public domain
+ */
+
+#include <machine/asm.h>
+
+ENTRY(lrint)
+ cvtsd2si %xmm0, %rax
+ ret
+