about summary refs log tree commit diff
path: root/src/math/x86_64/fabsf.s
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-04-29 20:31:46 -0400
committerRich Felker <dalias@aerifal.cx>2012-04-29 20:31:46 -0400
commit0e4a995213620630005a14f32c089879f7c0315e (patch)
treee5c584b6ceba8e24c312c67b82d59942d2bdc568 /src/math/x86_64/fabsf.s
parentaa859403886ed4b50da36e7fe101f7431856c004 (diff)
downloadmusl-0e4a995213620630005a14f32c089879f7c0315e.tar.gz
musl-0e4a995213620630005a14f32c089879f7c0315e.tar.xz
musl-0e4a995213620630005a14f32c089879f7c0315e.zip
new math asm (abs/rounding) for x86_64
untested
Diffstat (limited to 'src/math/x86_64/fabsf.s')
-rw-r--r--src/math/x86_64/fabsf.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/math/x86_64/fabsf.s b/src/math/x86_64/fabsf.s
new file mode 100644
index 00000000..501a1f17
--- /dev/null
+++ b/src/math/x86_64/fabsf.s
@@ -0,0 +1,7 @@
+.global fabsf
+.type fabsf,@function
+fabsf:
+	mov $0x7fffffff,%eax
+	movq %rax,%xmm1
+	andps %xmm1,%xmm0
+	ret