avoid changing NaNs in sqrt (x86 asm) to satisfy c99 f.9 recommendation
This commit is contained in:
parent
809556e60a
commit
46702f68f9
1 changed files with 4 additions and 0 deletions
|
|
@ -10,6 +10,10 @@ sqrt: fldl 4(%esp)
|
||||||
and $0x7ff,%ecx
|
and $0x7ff,%ecx
|
||||||
cmp $0x400,%ecx
|
cmp $0x400,%ecx
|
||||||
jnz 1f
|
jnz 1f
|
||||||
|
mov 8(%esp),%ecx
|
||||||
|
or $0xffff8000,%ecx
|
||||||
|
inc %ecx
|
||||||
|
jz 1f
|
||||||
and $0x200,%eax
|
and $0x200,%eax
|
||||||
sub $0x100,%eax
|
sub $0x100,%eax
|
||||||
sub %eax,(%esp)
|
sub %eax,(%esp)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue