about summary refs log tree commit diff
path: root/absl/numeric/int128.h
diff options
context:
space:
mode:
Diffstat (limited to 'absl/numeric/int128.h')
-rw-r--r--absl/numeric/int128.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/absl/numeric/int128.h b/absl/numeric/int128.h
index 11ecc8bcbd3c..2eded2f3b549 100644
--- a/absl/numeric/int128.h
+++ b/absl/numeric/int128.h
@@ -548,9 +548,6 @@ inline uint128& uint128::operator^=(uint128 other) {
 // Arithmetic operators.
 
 inline uint128 operator<<(uint128 lhs, int amount) {
-  assert(amount >= 0);   // Negative shifts are undefined.
-  assert(amount < 128);  // Shifts of >= 128 are undefined.
-
   // uint64_t shifts of >= 64 are undefined, so we will need some
   // special-casing.
   if (amount < 64) {
@@ -565,9 +562,6 @@ inline uint128 operator<<(uint128 lhs, int amount) {
 }
 
 inline uint128 operator>>(uint128 lhs, int amount) {
-  assert(amount >= 0);   // Negative shifts are undefined.
-  assert(amount < 128);  // Shifts of >= 128 are undefined.
-
   // uint64_t shifts of >= 64 are undefined, so we will need some
   // special-casing.
   if (amount < 64) {