aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/math
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-08-28 01:50:09 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-08-28 01:50:09 -0700
commit3f31b9852c313b6b9a670e9c202a7fb339e5d448 (patch)
tree44421a18e2e2c636683aa20940700e3e3425b3b8 /com32/lib/math
parent185b1c3a6c1f3ba8566507f1d8fe555480495a9c (diff)
downloadsyslinux.git-3f31b9852c313b6b9a670e9c202a7fb339e5d448.tar.gz
syslinux.git-3f31b9852c313b6b9a670e9c202a7fb339e5d448.tar.xz
syslinux.git-3f31b9852c313b6b9a670e9c202a7fb339e5d448.zip
Work on getting libpng to actually do something useful...
Diffstat (limited to 'com32/lib/math')
-rw-r--r--com32/lib/math/pow.S25
1 files changed, 25 insertions, 0 deletions
diff --git a/com32/lib/math/pow.S b/com32/lib/math/pow.S
new file mode 100644
index 00000000..5a124aba
--- /dev/null
+++ b/com32/lib/math/pow.S
@@ -0,0 +1,25 @@
+#
+# pow.S
+#
+# double pow(double base, double exponent)
+#
+
+ .text
+ .globl pow
+ .type pow,@function
+pow:
+ fldl 12(%esp)
+ fldl 4(%esp)
+ fyl2x
+ fld %st(0)
+ frndint
+ fsubr %st,%st(1)
+ fxch %st(1)
+ f2xm1
+ fld1
+ faddp %st,%st(1)
+ fscale
+ fstp %st(1)
+ ret
+
+ .size pow,.-pow