soft-fp64/fadd: Reformat after previous commit
Convert } else if (...) { ... } else { ... } to } else { if (...) { ... } else { ... } } Not doing this reformatting in the previous commit makes the previous commit easier to review, and doing it before the next commit makes the next commit easier to review. Reviewed-by: Matt Turner <mattst88@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4142>
This commit is contained in:
@@ -697,7 +697,8 @@ __fadd64(uint64_t a, uint64_t b)
|
|||||||
zExp = aExp;
|
zExp = aExp;
|
||||||
__shift64ExtraRightJamming(
|
__shift64ExtraRightJamming(
|
||||||
zFrac0, zFrac1, zFrac2, 1, zFrac0, zFrac1, zFrac2);
|
zFrac0, zFrac1, zFrac2, 1, zFrac0, zFrac1, zFrac2);
|
||||||
} else if (0 < expDiff) {
|
} else {
|
||||||
|
if (0 < expDiff) {
|
||||||
if (aExp == 0x7FF) {
|
if (aExp == 0x7FF) {
|
||||||
bool propagate = (aFracHi | aFracLo) != 0u;
|
bool propagate = (aFracHi | aFracLo) != 0u;
|
||||||
return mix(a, __propagateFloat64NaN(a, b), propagate);
|
return mix(a, __propagateFloat64NaN(a, b), propagate);
|
||||||
@@ -719,6 +720,7 @@ __fadd64(uint64_t a, uint64_t b)
|
|||||||
aFracHi, aFracLo, 0u, - expDiff, aFracHi, aFracLo, zFrac2);
|
aFracHi, aFracLo, 0u, - expDiff, aFracHi, aFracLo, zFrac2);
|
||||||
zExp = bExp;
|
zExp = bExp;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!orig_exp_diff_is_zero) {
|
if (!orig_exp_diff_is_zero) {
|
||||||
aFracHi |= 0x00100000u;
|
aFracHi |= 0x00100000u;
|
||||||
__add64(aFracHi, aFracLo, bFracHi, bFracLo, zFrac0, zFrac1);
|
__add64(aFracHi, aFracLo, bFracHi, bFracLo, zFrac0, zFrac1);
|
||||||
|
Reference in New Issue
Block a user