summaryrefslogtreecommitdiff
path: root/src/math/i386/scalbn.s
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/i386/scalbn.s')
-rw-r--r--src/math/i386/scalbn.s20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/math/i386/scalbn.s b/src/math/i386/scalbn.s
new file mode 100644
index 00000000..e275d14f
--- /dev/null
+++ b/src/math/i386/scalbn.s
@@ -0,0 +1,20 @@
+.global ldexp
+.type ldexp,@function
+ldexp:
+ nop
+
+.global scalbln
+.type scalbln,@function
+scalbln:
+ nop
+
+.global scalbn
+.type scalbn,@function
+scalbn:
+ fildl 12(%esp)
+ fldl 4(%esp)
+ fscale
+ fstp %st(1)
+ fstpl 4(%esp)
+ fldl 4(%esp)
+ ret