[libc-commits] [libc] [libc] Workaround for gcc complaining about implicit conversions with the ternary ?: operator. (PR #124820)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 28 13:04:32 PST 2025
================
@@ -81,12 +81,16 @@ template <typename T, size_t N> struct ExceptValues {
StorageType out_bits = values[i].rnd_towardzero_result;
switch (fputil::quick_get_round()) {
case FE_UPWARD:
- out_bits += sign ? values[i].rnd_downward_offset
- : values[i].rnd_upward_offset;
+ if (sign)
+ out_bits += values[i].rnd_downward_offset;
+ else
+ out_bits += values[i].rnd_upward_offset;
----------------
lntue wrote:
Thanks for finding the root cause of it! I updated the comments.
https://github.com/llvm/llvm-project/pull/124820
More information about the libc-commits
mailing list