4d1c7cf3eb
## Summary of the Pull Request <!-- Please review the items on the PR checklist before submitting--> ## PR Checklist * [x] Closes #4013 * [x] I work here. * [x] Existing tests should be OK. Real changes, just adding a lib to use. * [x] Couldn't find any existing docs about intsafe. * [x] Am core contributor. ## Detailed Description of the Pull Request / Additional comments * [x] Can we remove min/max completely or rename it in the two projects where it had to be reintroduced? This is now moved into #4152 * [x] How many usages of the old safe math are there? **79** * [x] If not a ton, can we migrate them here or in a follow on PR? This is now moved into #4153 Files with old safe math: - TerminalControl: TSFInputControl.cpp - TerminalCore: TerminalDispatch.cpp - TerminalCore: TerminalSelection.cpp - Host: directio.cpp - RendererGdi: invalidate.cpp - RendererGdi: math.cpp - RendererGdi: paint.cpp - RendererVt: paint.cpp - TerminalAdapter: adaptDispatch.cpp - Types: viewport.cpp - Types: WindowUiaProviderBase.cpp ## Validation Steps Performed
29 lines
890 B
Plaintext
29 lines
890 B
Plaintext
# Copyright (c) 2017 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
# This is a dependency-free, header-only, library, and it needs to stay that
|
|
# way to facilitate pulling it into various third-party projects. So, this
|
|
# file is here to protect against accidentally introducing external
|
|
# dependencies or depending on internal implementation details.
|
|
source_set("base_numerics") {
|
|
visibility = [ "//base/*" ]
|
|
sources = [
|
|
"checked_math_impl.h",
|
|
"clamped_math_impl.h",
|
|
"safe_conversions_arm_impl.h",
|
|
"safe_conversions_impl.h",
|
|
"safe_math_arm_impl.h",
|
|
"safe_math_clang_gcc_impl.h",
|
|
"safe_math_shared_impl.h",
|
|
]
|
|
public = [
|
|
"checked_math.h",
|
|
"clamped_math.h",
|
|
"math_constants.h",
|
|
"ranges.h",
|
|
"safe_conversions.h",
|
|
"safe_math.h",
|
|
]
|
|
}
|