[libc] [llvm] [libc] Refactor `BigInt` (PR #86137)

Nick Desaulniers via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 2 09:25:59 PDT 2024


================
@@ -169,6 +169,15 @@ LIBC_INLINE constexpr auto operator""_u256(const char *x) {
   return internal::parse_with_prefix<UInt<256>>(x);
 }
 
+template <typename T> LIBC_INLINE constexpr T parse_bigint(const char *x) {
----------------
nickdesaulniers wrote:

Consider what happens when `x == nullptr` or `x == ""`. You don't use it currently that way, but you did put this function in __support; others may use it one day.

https://github.com/llvm/llvm-project/pull/86137


More information about the llvm-commits mailing list