pgsql: Avoid a performance regression in float overflow/underflow detec

2020-02-13 Thread Tom Lane
Avoid a performance regression in float overflow/underflow detection. Commit 6bf0bc842 replaced float.c's CHECKFLOATVAL() macro with static inline subroutines, but that wasn't too well thought out. In the original coding, the unlikely condition (isinf(result) or result == 0) was checked first, an

pgsql: Avoid a performance regression in float overflow/underflow detec

2020-02-13 Thread Tom Lane
Avoid a performance regression in float overflow/underflow detection. Commit 6bf0bc842 replaced float.c's CHECKFLOATVAL() macro with static inline subroutines, but that wasn't too well thought out. In the original coding, the unlikely condition (isinf(result) or result == 0) was checked first, an