Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Side by Side Diff: base/numerics/safe_math_impl.h

Issue 346743003: Remove unused header in safe_math_impl.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 SAFE_MATH_IMPL_H_
6 #define SAFE_MATH_IMPL_H_ 6 #define 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/compiler_specific.h"
15 #include "base/macros.h" 14 #include "base/macros.h"
16 #include "base/numerics/safe_conversions.h" 15 #include "base/numerics/safe_conversions.h"
17 #include "base/template_util.h" 16 #include "base/template_util.h"
18 17
19 namespace base { 18 namespace base {
20 namespace internal { 19 namespace internal {
21 20
22 // Everything from here up to the floating point operations is portable C++, 21 // Everything from here up to the floating point operations is portable C++,
23 // but it may not be fast. This code could be split based on 22 // but it may not be fast. This code could be split based on
24 // platform/architecture and replaced with potentially faster implementations. 23 // platform/architecture and replaced with potentially faster implementations.
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 sizeof(T) >= (2 * sizeof(Lhs)) && 493 sizeof(T) >= (2 * sizeof(Lhs)) &&
495 StaticDstRangeRelationToSrcRange<T, Rhs>::value != 494 StaticDstRangeRelationToSrcRange<T, Rhs>::value !=
496 NUMERIC_RANGE_CONTAINED && 495 NUMERIC_RANGE_CONTAINED &&
497 sizeof(T) >= (2 * sizeof(Rhs)); 496 sizeof(T) >= (2 * sizeof(Rhs));
498 }; 497 };
499 498
500 } // namespace internal 499 } // namespace internal
501 } // namespace base 500 } // namespace base
502 501
503 #endif // SAFE_MATH_IMPL_H_ 502 #endif // SAFE_MATH_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698