summaryrefslogtreecommitdiff
path: root/src/math/x32/fabsf.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/x32/fabsf.s')
-rw-r--r--src/math/x32/fabsf.s7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/math/x32/fabsf.s b/src/math/x32/fabsf.s
new file mode 100644
index 00000000..501a1f17
--- /dev/null
+++ b/src/math/x32/fabsf.s
@@ -0,0 +1,7 @@
+.global fabsf
+.type fabsf,@function
+fabsf:
+ mov $0x7fffffff,%eax
+ movq %rax,%xmm1
+ andps %xmm1,%xmm0
+ ret