diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-04-10 11:30:34 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-04-10 11:30:34 +0000 |
commit | df62b489778e826707f1061b9c2c9add99d9d7af (patch) | |
tree | 0c5464566b4a9b0ed903d6b61887793a8f79961b /lib/libm/arch/amd64/s_lrint.S | |
parent | 2762d6caa1d744de66700e843278eb5b10efd288 (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.S | 12 |
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 + |