[reland][libc] Make BigInt bit_cast-able to compatible types (#74862)
commit31316b3f8511d659cc14ebc72fb2b226f78478a9
authorGuillaume Chatelet <gchatelet@google.com>
Fri, 8 Dec 2023 17:03:24 +0000 (8 18:03 +0100)
committerGitHub <noreply@github.com>
Fri, 8 Dec 2023 17:03:24 +0000 (8 18:03 +0100)
treed9358e16a7edafc36ce6c1589714058eb7277006
parent49b27b150b97c190dedf8b45bf991c4b811ed953
[reland][libc] Make BigInt bit_cast-able to compatible types (#74862)

Fix #74258
This is a reland of #74837, the error went unnoticed because it compiles
fine on
clang-16 but not on clang-12 which is the version used on the buildbots.

The fix was to explicitly initialize `BigInt` variables in `constexpr`
operations: `BigInt<Bits, Signed> result(0);` instead of `BigInt<Bits,
Signed> result;`
libc/src/__support/UInt.h
libc/src/__support/float_to_string.h
libc/test/src/__support/CMakeLists.txt
libc/test/src/__support/uint_test.cpp
utils/bazel/llvm-project-overlay/libc/test/src/__support/BUILD.bazel