summaryrefslogtreecommitdiff
path: root/src/math/i386/scalbnl.s
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-03-19 05:15:30 -0400
committerRich Felker <dalias@aerifal.cx>2012-03-19 05:15:30 -0400
commit58ff9e8eaf99f2294232be860daa2ca6f3674faf (patch)
treeb2fc48ab1eb651bdb5e023a3547747d558c888df /src/math/i386/scalbnl.s
parentbc33e617040166e971ec1e6822ac1cc417eb6c9c (diff)
downloadmusl-58ff9e8eaf99f2294232be860daa2ca6f3674faf.tar.gz
asm for scalbn family
unlike some implementations, these functions perform the equivalent of gcc's -ffloat-store on the result before returning. this is necessary to raise underflow/overflow/inexact exceptions, perform the correct rounding with denormals, etc.
Diffstat (limited to 'src/math/i386/scalbnl.s')
-rw-r--r--src/math/i386/scalbnl.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/math/i386/scalbnl.s b/src/math/i386/scalbnl.s
new file mode 100644
index 00000000..224b1bef
--- /dev/null
+++ b/src/math/i386/scalbnl.s
@@ -0,0 +1,18 @@
+.global ldexpl
+.type ldexpl,@function
+ldexpl:
+ nop
+
+.global scalblnl
+.type scalblnl,@function
+scalblnl:
+ nop
+
+.global scalbnl
+.type scalbnl,@function
+scalbnl:
+ fildl 16(%esp)
+ fldt 4(%esp)
+ fscale
+ fstp %st(1)
+ ret