aboutsummaryrefslogtreecommitdiff
path: root/src/math/x86_64/fabs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/x86_64/fabs.c')
-rw-r--r--src/math/x86_64/fabs.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/math/x86_64/fabs.c b/src/math/x86_64/fabs.c
index 16562477..aca2f361 100644
--- a/src/math/x86_64/fabs.c
+++ b/src/math/x86_64/fabs.c
@@ -8,3 +8,11 @@ double fabs(double x)
__asm__ ("andps %1, %0" : "+x"(x) : "x"(t)); // x &= t
return x;
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif