From: Rich Felker Date: Mon, 19 Mar 2012 03:50:54 +0000 (-0400) Subject: asm for log functions X-Git-Tag: v0.8.8~100 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=495a52ae7bb581aac2942d7cb095cca2ff53ca3c;p=oweals%2Fmusl.git asm for log functions --- diff --git a/src/math/i386/log.s b/src/math/i386/log.s new file mode 100644 index 00000000..fcccf030 --- /dev/null +++ b/src/math/i386/log.s @@ -0,0 +1,7 @@ +.global log +.type log,@function +log: + fldln2 + fldl 4(%esp) + fyl2x + ret diff --git a/src/math/i386/log10.s b/src/math/i386/log10.s new file mode 100644 index 00000000..28eb5b2f --- /dev/null +++ b/src/math/i386/log10.s @@ -0,0 +1,7 @@ +.global log10 +.type log10,@function +log10: + fldlg2 + fldl 4(%esp) + fyl2x + ret diff --git a/src/math/i386/log10f.s b/src/math/i386/log10f.s new file mode 100644 index 00000000..c0c0c67e --- /dev/null +++ b/src/math/i386/log10f.s @@ -0,0 +1,7 @@ +.global log10f +.type log10f,@function +log10f: + fldlg2 + flds 4(%esp) + fyl2x + ret diff --git a/src/math/i386/log10l.s b/src/math/i386/log10l.s new file mode 100644 index 00000000..aaa44f2f --- /dev/null +++ b/src/math/i386/log10l.s @@ -0,0 +1,7 @@ +.global log10l +.type log10l,@function +log10l: + fldlg2 + fldt 4(%esp) + fyl2x + ret diff --git a/src/math/i386/logf.s b/src/math/i386/logf.s new file mode 100644 index 00000000..da7ff3ae --- /dev/null +++ b/src/math/i386/logf.s @@ -0,0 +1,7 @@ +.global logf +.type logf,@function +logf: + fldln2 + flds 4(%esp) + fyl2x + ret diff --git a/src/math/i386/logl.s b/src/math/i386/logl.s new file mode 100644 index 00000000..d4e3339b --- /dev/null +++ b/src/math/i386/logl.s @@ -0,0 +1,7 @@ +.global logl +.type logl,@function +logl: + fldln2 + fldt 4(%esp) + fyl2x + ret