summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/i386/ldexp.S
diff options
context:
space:
mode:
Diffstat (limited to 'mdk-stage1/dietlibc/i386/ldexp.S')
-rw-r--r--mdk-stage1/dietlibc/i386/ldexp.S23
1 files changed, 18 insertions, 5 deletions
diff --git a/mdk-stage1/dietlibc/i386/ldexp.S b/mdk-stage1/dietlibc/i386/ldexp.S
index 4429b6e22..51d9bae89 100644
--- a/mdk-stage1/dietlibc/i386/ldexp.S
+++ b/mdk-stage1/dietlibc/i386/ldexp.S
@@ -1,15 +1,28 @@
.text
-.type ldexp,@function
-.global ldexp
+.global ldexpf,ldexp,ldexpl
+ .type ldexpf,@function
+ .type ldexp,@function
+ .type ldexpl,@function
-# double ldexp ( double value, int expo );
+ldexpf:
+ fildl 8(%esp)
+ flds 4(%esp)
+ fscale
+ ret
ldexp:
fildl 12(%esp)
fldl 4(%esp)
fscale
- fstp %st(1)
+ ret
+
+ldexpl:
+ fildl 16(%esp)
+ fldt 4(%esp)
+ fscale
ret
.ende:
-.size ldexp,.ende-ldexp
+.size ldexpl,.ende-ldexpl
+.size ldexp,ldexpl-ldexp
+.size ldexpf,ldexp-ldexpf