mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[CRT]
Check for positive and negative infinity in exp(). svn path=/trunk/; revision=69998
This commit is contained in:
parent
910057b92a
commit
c69fc844a0
|
@ -11,6 +11,18 @@ _exp:
|
|||
mov ebp, esp
|
||||
|
||||
fld qword ptr [ebp + 8]
|
||||
fxam
|
||||
fstsw ax
|
||||
fwait
|
||||
sahf
|
||||
jnp .not_inf
|
||||
jnc .not_inf
|
||||
test ah, 2
|
||||
jz .done
|
||||
fstp st
|
||||
fldz
|
||||
jmp .done
|
||||
.not_inf:
|
||||
fldl2e
|
||||
fmul st, st(1)
|
||||
fst st(1)
|
||||
|
@ -22,7 +34,7 @@ _exp:
|
|||
faddp st(1), st
|
||||
fscale
|
||||
fstp st(1)
|
||||
|
||||
.done:
|
||||
pop ebp
|
||||
ret
|
||||
|
||||
|
|
Loading…
Reference in a new issue