Browse Source

asm for log functions

Rich Felker 13 years ago
parent
commit
495a52ae7b
6 changed files with 42 additions and 0 deletions
  1. 7 0
      src/math/i386/log.s
  2. 7 0
      src/math/i386/log10.s
  3. 7 0
      src/math/i386/log10f.s
  4. 7 0
      src/math/i386/log10l.s
  5. 7 0
      src/math/i386/logf.s
  6. 7 0
      src/math/i386/logl.s

+ 7 - 0
src/math/i386/log.s

@@ -0,0 +1,7 @@
+.global log
+.type log,@function
+log:
+	fldln2
+	fldl 4(%esp)
+	fyl2x
+	ret

+ 7 - 0
src/math/i386/log10.s

@@ -0,0 +1,7 @@
+.global log10
+.type log10,@function
+log10:
+	fldlg2
+	fldl 4(%esp)
+	fyl2x
+	ret

+ 7 - 0
src/math/i386/log10f.s

@@ -0,0 +1,7 @@
+.global log10f
+.type log10f,@function
+log10f:
+	fldlg2
+	flds 4(%esp)
+	fyl2x
+	ret

+ 7 - 0
src/math/i386/log10l.s

@@ -0,0 +1,7 @@
+.global log10l
+.type log10l,@function
+log10l:
+	fldlg2
+	fldt 4(%esp)
+	fyl2x
+	ret

+ 7 - 0
src/math/i386/logf.s

@@ -0,0 +1,7 @@
+.global logf
+.type logf,@function
+logf:
+	fldln2
+	flds 4(%esp)
+	fyl2x
+	ret

+ 7 - 0
src/math/i386/logl.s

@@ -0,0 +1,7 @@
+.global logl
+.type logl,@function
+logl:
+	fldln2
+	fldt 4(%esp)
+	fyl2x
+	ret