x86_64 math asm, long double functions only
[musl] / src / math / x86_64 / lrintl.s
diff --git a/src/math/x86_64/lrintl.s b/src/math/x86_64/lrintl.s
new file mode 100644 (file)
index 0000000..5d6a15a
--- /dev/null
@@ -0,0 +1,7 @@
+.global lrintl
+.type lrintl,@function
+lrintl:
+       fldt 8(%rsp)
+       fistpl 8(%rsp)
+       mov 8(%rsp),%eax
+       ret