diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-08-28 01:50:09 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-08-28 01:50:09 -0700 |
commit | 3f31b9852c313b6b9a670e9c202a7fb339e5d448 (patch) | |
tree | 44421a18e2e2c636683aa20940700e3e3425b3b8 /com32/lib/math/pow.S | |
parent | 185b1c3a6c1f3ba8566507f1d8fe555480495a9c (diff) | |
download | syslinux.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/pow.S')
-rw-r--r-- | com32/lib/math/pow.S | 25 |
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 |