2007-11-26 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
* Makefile.in: Add libmsvcr90.a and libmsvcr90d.a targets. * msvcrt.def.in: Add support for __msvcr90__ and __msvcr90d__ defines. * mingwex/math/log10f.S: Correct issue with comments. * mingwex/math/log10l.S: Ditto. * mingwex/math/log1p.S: Ditto. * mingwex/math/log1pf.S: Ditto. * mingwex/math/log1pl.S: Ditto. * mingwex/math/log2.S: Ditto. * mingwex/math/log2f.S: Ditto. * mingwex/math/log2l.S: Ditto. * mingwex/math/logf.S: Ditto. * mingwex/math/logl.S: Ditto.
This commit is contained in:
@@ -21,20 +21,20 @@ limit: .double 0.29
|
||||
.globl _logl
|
||||
.def _logl; .scl 2; .type 32; .endef
|
||||
_logl:
|
||||
fldln2 // log(2)
|
||||
fldt 4(%esp) // x : log(2)
|
||||
fld %st // x : x : log(2)
|
||||
fsubl one // x-1 : x : log(2)
|
||||
fld %st // x-1 : x-1 : x : log(2)
|
||||
fabs // |x-1| : x-1 : x : log(2)
|
||||
fcompl limit // x-1 : x : log(2)
|
||||
fnstsw // x-1 : x : log(2)
|
||||
fldln2 /* log(2) */
|
||||
fldt 4(%esp) /* x : log(2) */
|
||||
fld %st /* x : x : log(2) */
|
||||
fsubl one /* x-1 : x : log(2) */
|
||||
fld %st /* x-1 : x-1 : x : log(2) */
|
||||
fabs /* |x-1| : x-1 : x : log(2) */
|
||||
fcompl limit /* x-1 : x : log(2) */
|
||||
fnstsw /* x-1 : x : log(2) */
|
||||
andb $0x45, %ah
|
||||
jz 2f
|
||||
fstp %st(1) // x-1 : log(2)
|
||||
fyl2xp1 // log(x)
|
||||
fstp %st(1) /* x-1 : log(2) */
|
||||
fyl2xp1 /* log(x) */
|
||||
ret
|
||||
|
||||
2: fstp %st(0) // x : log(2)
|
||||
fyl2x // log(x)
|
||||
2: fstp %st(0) /* x : log(2) */
|
||||
fyl2x /* log(x) */
|
||||
ret
|
||||
|
Reference in New Issue
Block a user