aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/libm-i387/s_ilogbl.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/s_ilogbl.S')
-rw-r--r--sysdeps/libm-i387/s_ilogbl.S13
1 files changed, 5 insertions, 8 deletions
diff --git a/sysdeps/libm-i387/s_ilogbl.S b/sysdeps/libm-i387/s_ilogbl.S
index 2422a41..adc88aa 100644
--- a/sysdeps/libm-i387/s_ilogbl.S
+++ b/sysdeps/libm-i387/s_ilogbl.S
@@ -9,17 +9,14 @@
RCSID("$NetBSD: $")
ENTRY(__ilogbl)
- pushl %ebp
- movl %esp,%ebp
- subl $4,%esp
-
- fldt 8(%ebp)
+ fldt 4(%esp)
fxtract
+ pushl %eax
+ fstp %st
- fistpl -4(%ebp)
- movl -4(%ebp),%eax
+ fistpl (%esp)
+ popl %eax
- leave
ret
END (__ilogbl)
weak_alias (__ilogbl, ilogbl)