summaryrefslogtreecommitdiffstats
path: root/libc-top-half/musl/src/math/i386/log2.s
diff options
context:
space:
mode:
Diffstat (limited to 'libc-top-half/musl/src/math/i386/log2.s')
-rw-r--r--libc-top-half/musl/src/math/i386/log2.s9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc-top-half/musl/src/math/i386/log2.s b/libc-top-half/musl/src/math/i386/log2.s
new file mode 100644
index 0000000..7eff0b6
--- /dev/null
+++ b/libc-top-half/musl/src/math/i386/log2.s
@@ -0,0 +1,9 @@
+.global log2
+.type log2,@function
+log2:
+ fld1
+ fldl 4(%esp)
+ fyl2x
+ fstpl 4(%esp)
+ fldl 4(%esp)
+ ret