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.

Signed-off-by: Aleksandar Markovic <aleksandar.markovic@imgtec.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
This commit is contained in:
Aleksandar Markovic 2016-06-10 11:57:29 +02:00 committed by Leon Alrae
parent af39bc8c49
commit a59eaea646
1 changed files with 28 additions and 29 deletions

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 {