mirror of
https://github.com/holub/mame
synced 2025-06-30 07:58:56 +03:00
cpu/powerpc: Fix QNan check (#12896)
a) all constants were one digit too short b) the payload was always expected to be 0 (which is just a special case qnan (Real Indefinite) though)
This commit is contained in:
parent
27a8956384
commit
bcfb0d052c
@ -505,8 +505,7 @@ static inline int is_qnan_double(double x)
|
|||||||
{
|
{
|
||||||
uint64_t xi = *(uint64_t*)&x;
|
uint64_t xi = *(uint64_t*)&x;
|
||||||
return( ((xi & DOUBLE_EXP) == DOUBLE_EXP) &&
|
return( ((xi & DOUBLE_EXP) == DOUBLE_EXP) &&
|
||||||
((xi & 0x0007fffffffffffU) == 0x000000000000000U) &&
|
((xi & 0x0008000000000000U) == 0x0008000000000000U) );
|
||||||
((xi & 0x000800000000000U) == 0x000800000000000U) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user