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

Side by Side Diff: third_party/base/numerics/safe_conversions_impl.h

Issue 1434223002: Remove relative includes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month 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
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 PDFIUM_THIRD_PARTY_BASE_SAFE_CONVERSIONS_IMPL_H_ 5 #ifndef PDFIUM_THIRD_PARTY_BASE_SAFE_CONVERSIONS_IMPL_H_
6 #define PDFIUM_THIRD_PARTY_BASE_SAFE_CONVERSIONS_IMPL_H_ 6 #define PDFIUM_THIRD_PARTY_BASE_SAFE_CONVERSIONS_IMPL_H_
7 7
8 #include <assert.h> 8 #include <assert.h>
9 #include <limits> 9 #include <limits>
10 10
11 #include "../macros.h" 11 #include "third_party/base/macros.h"
12 #include "../template_util.h" 12 #include "third_party/base/template_util.h"
13 13
14 namespace pdfium { 14 namespace pdfium {
15 namespace base { 15 namespace base {
16 namespace internal { 16 namespace internal {
17 17
18 // The std library doesn't provide a binary max_exponent for integers, however 18 // The std library doesn't provide a binary max_exponent for integers, however
19 // we can compute one by adding one to the number of non-sign bits. This allows 19 // we can compute one by adding one to the number of non-sign bits. This allows
20 // for accurate range comparisons between floating point and integer types. 20 // for accurate range comparisons between floating point and integer types.
21 template <typename NumericType> 21 template <typename NumericType>
22 struct MaxExponent { 22 struct MaxExponent {
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 COMPILE_ASSERT(std::numeric_limits<Dst>::is_specialized, 210 COMPILE_ASSERT(std::numeric_limits<Dst>::is_specialized,
211 result_must_be_numeric); 211 result_must_be_numeric);
212 return DstRangeRelationToSrcRangeImpl<Dst, Src>::Check(value); 212 return DstRangeRelationToSrcRangeImpl<Dst, Src>::Check(value);
213 } 213 }
214 214
215 } // namespace internal 215 } // namespace internal
216 } // namespace base 216 } // namespace base
217 } // namespace pdfium 217 } // namespace pdfium
218 218
219 #endif // PDFIUM_THIRD_PARTY_BASE_SAFE_CONVERSIONS_IMPL_H_ 219 #endif // PDFIUM_THIRD_PARTY_BASE_SAFE_CONVERSIONS_IMPL_H_
OLDNEW
« no previous file with comments | « third_party/base/numerics/safe_conversions.h ('k') | third_party/base/numerics/safe_math_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698