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

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

Issue 985003004: base: Fix/add header #ifndef guards. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: headers: . Created 5 years, 9 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
« no previous file with comments | « base/numerics/safe_math.h ('k') | base/pending_task.h » ('j') | 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 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
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_
OLDNEW
« no previous file with comments | « base/numerics/safe_math.h ('k') | base/pending_task.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698