| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium 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 #ifndef SAFE_MATH_IMPL_H_ | 5 #ifndef BASE_NUMERICS_SAFE_MATH_IMPL_H_ |
| 6 #define SAFE_MATH_IMPL_H_ | 6 #define BASE_NUMERICS_SAFE_MATH_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <cmath> | 10 #include <cmath> |
| 11 #include <cstdlib> | 11 #include <cstdlib> |
| 12 #include <limits> | 12 #include <limits> |
| 13 | 13 |
| 14 #include "base/numerics/safe_conversions.h" | 14 #include "base/numerics/safe_conversions.h" |
| 15 #include "base/template_util.h" | 15 #include "base/template_util.h" |
| 16 | 16 |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 NUMERIC_RANGE_CONTAINED && | 491 NUMERIC_RANGE_CONTAINED && |
| 492 sizeof(T) >= (2 * sizeof(Lhs)) && | 492 sizeof(T) >= (2 * sizeof(Lhs)) && |
| 493 StaticDstRangeRelationToSrcRange<T, Rhs>::value != | 493 StaticDstRangeRelationToSrcRange<T, Rhs>::value != |
| 494 NUMERIC_RANGE_CONTAINED && | 494 NUMERIC_RANGE_CONTAINED && |
| 495 sizeof(T) >= (2 * sizeof(Rhs)); | 495 sizeof(T) >= (2 * sizeof(Rhs)); |
| 496 }; | 496 }; |
| 497 | 497 |
| 498 } // namespace internal | 498 } // namespace internal |
| 499 } // namespace base | 499 } // namespace base |
| 500 | 500 |
| 501 #endif // SAFE_MATH_IMPL_H_ | 501 #endif // BASE_NUMERICS_SAFE_MATH_IMPL_H_ |
| OLD | NEW |