From 323272db175204b951f119dae4bd99ef05e20f13 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Tue, 7 Jan 2014 22:43:34 +0100 Subject: import vanilla x86_64 code as x32 --- src/math/x32/fabs.s | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/math/x32/fabs.s (limited to 'src/math/x32/fabs.s') diff --git a/src/math/x32/fabs.s b/src/math/x32/fabs.s new file mode 100644 index 00000000..5715005e --- /dev/null +++ b/src/math/x32/fabs.s @@ -0,0 +1,9 @@ +.global fabs +.type fabs,@function +fabs: + xor %eax,%eax + dec %rax + shr %rax + movq %rax,%xmm1 + andpd %xmm1,%xmm0 + ret -- cgit v1.2.1