From 495a52ae7bb581aac2942d7cb095cca2ff53ca3c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sun, 18 Mar 2012 23:50:54 -0400 Subject: [PATCH] asm for log functions --- src/math/i386/log.s | 7 +++++++ src/math/i386/log10.s | 7 +++++++ src/math/i386/log10f.s | 7 +++++++ src/math/i386/log10l.s | 7 +++++++ src/math/i386/logf.s | 7 +++++++ src/math/i386/logl.s | 7 +++++++ 6 files changed, 42 insertions(+) create mode 100644 src/math/i386/log.s create mode 100644 src/math/i386/log10.s create mode 100644 src/math/i386/log10f.s create mode 100644 src/math/i386/log10l.s create mode 100644 src/math/i386/logf.s create mode 100644 src/math/i386/logl.s 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 -- 2.25.1