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:
Aleksandar Markovic 2018-02-24 20:34:55 -05:00 committed by Lioncash
parent 6eb4fa54f6
commit 33ee9429b2
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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 {