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

via libc-commits libc-commits at lists.llvm.org
Wed Mar 27 21:22:15 PDT 2024


================
@@ -244,18 +244,30 @@ LIBC_INLINE constexpr bool is_negative(cpp::array<word, N> &array) {
 enum Direction { LEFT, RIGHT };
 
 // A bitwise shift on an array of elements.
+// TODO: Make the result UB when 'offset' is greater or equal to the number of
----------------
lntue wrote:

Or similar to other ones, we can have both safe and unsafe shifts.

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


More information about the libc-commits mailing list