Skip to content
Commit 9273b2d0 authored by Aurelien Jarno's avatar Aurelien Jarno
Browse files

Avoid undefined behaviour in ibm128 implementation of llroundl (BZ #29488)



Detecting an overflow edge case depended on signed overflow of a long
long. Replace the additions and the overflow checks by
__builtin_add_overflow().

Reviewed-by: default avatarTulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
(cherry picked from commit 2b547856)
parent b3571573
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment