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

Issue 24159009: Add SkDivMod with a special case for ARM. (Closed)

Created:
7 years, 3 months ago by mtklein
Modified:
7 years, 2 months ago
Reviewers:
tomhudson, djsollen, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Add SkDivMod with a special case for ARM. BUG=skia:1663 Committed: http://code.google.com/p/skia/source/detail?r=11482

Patch Set 1 #

Patch Set 2 : use SkDivMod in SkScaledImageCache #

Patch Set 3 : moddiv -> divmod #

Patch Set 4 : port get_upper_left_from_offset #

Total comments: 4

Patch Set 5 : reed #

Patch Set 6 : add edge case and random tests #

Patch Set 7 : appease gcc on 10.6 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -6 lines) Patch
M bench/MathBench.cpp View 1 2 3 4 1 chunk +36 lines, -0 lines 0 comments Download
M include/core/SkMath.h View 1 2 3 4 1 chunk +22 lines, -0 lines 0 comments Download
M src/core/SkBitmap.cpp View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkScaledImageCache.cpp View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M tests/MathTest.cpp View 1 2 3 4 5 6 1 chunk +71 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
mtklein
I see 10-15% improvement on imagecache bench, and 2x on the new divmod benches.
7 years, 3 months ago (2013-09-20 18:34:39 UTC) #1
mtklein
7 years, 3 months ago (2013-09-20 18:36:05 UTC) #2
djsollen
can you update skbitmap.cpp::get_upper_left_from_offset to use this new function as well?
7 years, 3 months ago (2013-09-20 18:51:52 UTC) #3
mtklein
On 2013/09/20 18:51:52, djsollen wrote: > can you update skbitmap.cpp::get_upper_left_from_offset to use this new function ...
7 years, 3 months ago (2013-09-20 18:59:34 UTC) #4
reed1
https://codereview.chromium.org/24159009/diff/9001/include/core/SkMath.h File include/core/SkMath.h (right): https://codereview.chromium.org/24159009/diff/9001/include/core/SkMath.h#newcode181 include/core/SkMath.h:181: inline void SkDivMod(T x, T y, T* div, T* ...
7 years, 3 months ago (2013-09-20 19:02:39 UTC) #5
mtklein
https://codereview.chromium.org/24159009/diff/9001/include/core/SkMath.h File include/core/SkMath.h (right): https://codereview.chromium.org/24159009/diff/9001/include/core/SkMath.h#newcode181 include/core/SkMath.h:181: inline void SkDivMod(T x, T y, T* div, T* ...
7 years, 3 months ago (2013-09-20 19:29:35 UTC) #6
reed1
suggestion for unittest: 10,000 random ints passed to your macro, and to { div = ...
7 years, 3 months ago (2013-09-20 19:59:50 UTC) #7
tomhudson
On 2013/09/20 19:59:50, reed1 wrote: > suggestion for unittest: > > 10,000 random ints passed ...
7 years, 3 months ago (2013-09-23 09:25:26 UTC) #8
mtklein
On 2013/09/23 09:25:26, tomhudson wrote: > On 2013/09/20 19:59:50, reed1 wrote: > > suggestion for ...
7 years, 3 months ago (2013-09-23 11:44:30 UTC) #9
mtklein
On 2013/09/23 11:44:30, mtklein wrote: > On 2013/09/23 09:25:26, tomhudson wrote: > > On 2013/09/20 ...
7 years, 3 months ago (2013-09-24 15:09:52 UTC) #10
tomhudson
Thanks for adding the tests; LGTM.
7 years, 2 months ago (2013-09-25 12:38:59 UTC) #11
reed1
lgtm
7 years, 2 months ago (2013-09-26 15:44:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@google.com/24159009/28001
7 years, 2 months ago (2013-09-26 16:10:21 UTC) #13
commit-bot: I haz the power
7 years, 2 months ago (2013-09-26 19:22:59 UTC) #14
Message was sent while issue was closed.
Change committed as 11482

Powered by Google App Engine
This is Rietveld 408576698