X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fx86_64%2Ffabs.s;fp=src%2Fmath%2Fx86_64%2Ffabs.s;h=5715005e330a64afd209121f36a8b70e51200913;hb=0e4a995213620630005a14f32c089879f7c0315e;hp=0000000000000000000000000000000000000000;hpb=aa859403886ed4b50da36e7fe101f7431856c004;p=musl diff --git a/src/math/x86_64/fabs.s b/src/math/x86_64/fabs.s new file mode 100644 index 00000000..5715005e --- /dev/null +++ b/src/math/x86_64/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