summaryrefslogtreecommitdiff
path: root/src/math/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/x86_64')
-rw-r--r--src/math/x86_64/fabsl.s6
-rw-r--r--src/math/x86_64/rintl.s6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/math/x86_64/fabsl.s b/src/math/x86_64/fabsl.s
new file mode 100644
index 00000000..4e7ab525
--- /dev/null
+++ b/src/math/x86_64/fabsl.s
@@ -0,0 +1,6 @@
+.global fabsl
+.type fabsl,@function
+fabsl:
+ fldt 8(%rsp)
+ fabs
+ ret
diff --git a/src/math/x86_64/rintl.s b/src/math/x86_64/rintl.s
new file mode 100644
index 00000000..64e663cd
--- /dev/null
+++ b/src/math/x86_64/rintl.s
@@ -0,0 +1,6 @@
+.global rintl
+.type rintl,@function
+rintl:
+ fldt 8(%rsp)
+ frndint
+ ret