File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -790,11 +790,21 @@ struct BigInt {
790790 remainder[pos] = rem;
791791 }
792792
793+ // GCC currently emits a false-positive warning on this for some compilers.
794+ #ifdef __GNUC__
795+ #pragma GCC diagnostic push
796+ #pragma GCC diagnostic ignored "-Waggressive-loop-optimizations"
797+ #endif
798+
793799 // Set the remaining lower bits of the remainder.
794800 for (; pos > 0 ; --pos) {
795801 remainder[pos - 1 ] = val[pos - 1 ];
796802 }
797803
804+ #ifdef __GNUC__
805+ #pragma GCC diagnostic pop
806+ #endif
807+
798808 *this = quotient;
799809 return remainder;
800810 }
@@ -851,8 +861,8 @@ struct BigInt {
851861 result[i] = lhs[i] OP rhs[i]; \
852862 return result; \
853863 } \
854- LIBC_INLINE friend constexpr BigInt operator OP##=(BigInt &lhs, \
855- const BigInt &rhs) { \
864+ LIBC_INLINE friend constexpr BigInt operator OP## = \
865+ (BigInt & lhs, const BigInt &rhs) { \
856866 for (size_t i = 0 ; i < WORD_COUNT; ++i) \
857867 lhs[i] OP## = rhs[i]; \
858868 return lhs; \
You can’t perform that action at this time.
0 commit comments