diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-19 22:12:35 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-04-19 22:12:35 +0000 |
commit | 0f1fef834c73cb4f38023de0f98d05562d24f2bc (patch) | |
tree | c033e77f202d2f284a67326725b72b898a505bd3 /src/core/SkMath.cpp | |
parent | 2cfa3200fda29279eba1240170c7e873d12f9d48 (diff) |
inline SkMulDiv now that 64bit mul is inlineable
TBR=caryclark@google.com
Author: reed@google.com
Review URL: https://codereview.chromium.org/242493006
git-svn-id: http://skia.googlecode.com/svn/trunk@14268 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkMath.cpp')
-rw-r--r-- | src/core/SkMath.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/core/SkMath.cpp b/src/core/SkMath.cpp index 25ac9aa936..aeacebecd4 100644 --- a/src/core/SkMath.cpp +++ b/src/core/SkMath.cpp @@ -43,13 +43,6 @@ int SkCLZ_portable(uint32_t x) { return zeros; } -int32_t SkMulDiv(int32_t numer1, int32_t numer2, int32_t denom) { - SkASSERT(denom); - - int64_t tmp = sk_64_mul(numer1, numer2) / denom; - return sk_64_asS32(tmp); -} - SkFixed SkFixedMul_portable(SkFixed a, SkFixed b) { #if defined(SkLONGLONG) return static_cast<SkFixed>((int64_t)a * b >> 16); |