mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-24 13:35:30 +00:00
softfloat: Clean code format in fpu/softfloat-specialize.h
fpu/softfloat-specialize.h is the most critical file in SoftFloat library, since it handles numerous differences between platforms in relation to floating point arithmetics. This patch makes the code in this file more consistent format-wise, and hopefully easier to debug and maintain. Backports commit a59eaea64686c8966b7653303660f8c26f285c77 from qemu
This commit is contained in:
parent
6eb4fa54f6
commit
33ee9429b2
|
@ -498,11 +498,10 @@ static int pickNaN(flag aIsQNaN, flag aIsSNaN, flag bIsQNaN, flag bIsSNaN,
|
||||||
return aIsLargerSignificand ? 0 : 1;
|
return aIsLargerSignificand ? 0 : 1;
|
||||||
}
|
}
|
||||||
return bIsQNaN ? 1 : 0;
|
return bIsQNaN ? 1 : 0;
|
||||||
}
|
} else if (aIsQNaN) {
|
||||||
else if (aIsQNaN) {
|
if (bIsSNaN || !bIsQNaN) {
|
||||||
if (bIsSNaN || !bIsQNaN)
|
|
||||||
return 0;
|
return 0;
|
||||||
else {
|
} else {
|
||||||
return aIsLargerSignificand ? 0 : 1;
|
return aIsLargerSignificand ? 0 : 1;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue