OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <limits> | 5 #include <limits> |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/base/macros.h" | 8 #include "src/base/macros.h" |
9 #include "testing/gtest-support.h" | 9 #include "testing/gtest-support.h" |
10 | 10 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 TRACED_FORRANGE(int32_t, j, 1, i) { | 158 TRACED_FORRANGE(int32_t, j, 1, i) { |
159 EXPECT_FALSE(SignedSubOverflow32(i, j, &val)); | 159 EXPECT_FALSE(SignedSubOverflow32(i, j, &val)); |
160 EXPECT_EQ(i - j, val); | 160 EXPECT_EQ(i - j, val); |
161 } | 161 } |
162 } | 162 } |
163 } | 163 } |
164 | 164 |
165 } // namespace bits | 165 } // namespace bits |
166 } // namespace base | 166 } // namespace base |
167 } // namespace v8 | 167 } // namespace v8 |
OLD | NEW |