Original Post
🔒 Locked
Asm Float Comparisons
Advertisement
If you''re willing to assume Pentium Pro CPU or above, what you want is fcomi.
fcomi st0, st_i => ZF = (st0 == st_i), CF = (st0 < st_i), PF = error (NaN etc.; FPUCW.IM = 1)
HTH
Jan
fcomi st0, st_i => ZF = (st0 == st_i), CF = (st0 < st_i), PF = error (NaN etc.; FPUCW.IM = 1)
HTH
Jan
> A pentium pro+ is considered Pentium Pro,Pentium II,Pentium III,Pentium IV <
hehe. I think he meant non-Intel CPUs
This and all other Pentium Pro features are supported on Athlons; I dunno about Transmeta and Cyrix (in case anyone cares
)
You can test if the processor supports fcomi:
bits 0 and 15 must be set.
500x5
hehe. I think he meant non-Intel CPUs
This and all other Pentium Pro features are supported on Athlons; I dunno about Transmeta and Cyrix (in case anyone cares
You can test if the processor supports fcomi:
mov eax, 1
cpuid
mov [feat_flags], edx
bits 0 and 15 must be set.
500x5
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement