mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01: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
1 changed files with 1 additions and 2 deletions
|
@ -505,8 +505,7 @@ static inline int is_qnan_double(double x)
|
|||
{
|
||||
uint64_t xi = *(uint64_t*)&x;
|
||||
return( ((xi & DOUBLE_EXP) == DOUBLE_EXP) &&
|
||||
((xi & 0x0007fffffffffffU) == 0x000000000000000U) &&
|
||||
((xi & 0x000800000000000U) == 0x000800000000000U) );
|
||||
((xi & 0x0008000000000000U) == 0x0008000000000000U) );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue