diff options
author | Ben Wagner <bungeman@google.com> | 2018-06-12 17:52:29 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-13 15:41:57 +0000 |
commit | 6fbafc0afa2f6489a74d62d96351744def4a822d (patch) | |
tree | 26f1f8a0d6dcf7794949689c4d605f4544b1a38c /include | |
parent | d34b8a80f30a176ecf1c01ae7220b5f8af636eb8 (diff) |
Remove SkMulDiv.
This removes the last use of SkMulDiv. This last use was in the
conversion code for FontConfig widths and weights which is modified to
use SkScaler instead of SkFixed.
Change-Id: Ia20a2066cbc42e986c44fc573829edf86973846e
Reviewed-on: https://skia-review.googlesource.com/134426
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkMath.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/core/SkMath.h b/include/core/SkMath.h index fb551abb40..7b90032973 100644 --- a/include/core/SkMath.h +++ b/include/core/SkMath.h @@ -24,18 +24,6 @@ static inline int64_t sk_64_mul(int64_t a, int64_t b) { /////////////////////////////////////////////////////////////////////////////// /** - * Computes numer1 * numer2 / denom in full 64 intermediate precision. - * It is an error for denom to be 0. There is no special handling if - * the result overflows 32bits. - */ -static inline int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom) { - SkASSERT(denom); - - int64_t tmp = sk_64_mul(numer1, numer2) / denom; - return SkTo<int32_t>(tmp); -} - -/** * Return the integer square root of value, with a bias of bitBias */ int32_t SkSqrtBits(int32_t value, int bitBias); |