projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new math asm (abs/rounding) for x86_64
[musl]
/
src
/
math
/
x86_64
/
fabsf.s
diff --git a/src/math/x86_64/fabsf.s
b/src/math/x86_64/fabsf.s
new file mode 100644
(file)
index 0000000..
501a1f1
--- /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