aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-01-31 08:02:47 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-01-31 08:02:47 -0800
commit507ef6d68115ae9e6d884bb36436a1463523d893 (patch)
tree67a2aabdf43f8dab134b2f08240d511dd1113af1 /bench
parentb1c32b7bde01e74ea59a9c0182c47cef862ef1c5 (diff)
SkNx Load/store: take any pointer.
This means we can remove a lot of explicit casts in code that uses SkNx. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1650653002 CQ_EXTRA_TRYBOTS=client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Review URL: https://codereview.chromium.org/1650653002
Diffstat (limited to 'bench')
-rw-r--r--bench/Sk4fBench.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/Sk4fBench.cpp b/bench/Sk4fBench.cpp
index 1daa3f2973..712a65776d 100644
--- a/bench/Sk4fBench.cpp
+++ b/bench/Sk4fBench.cpp
@@ -33,8 +33,8 @@ struct Sk4fBytesRoundtripBench : public Benchmark {
for (int i = 0; i < loops; i++) {
uint32_t color = lcg_rand(&seed),
back;
- auto f = SkNx_cast<float>(Sk4b::Load((const uint8_t*)&color));
- SkNx_cast<uint8_t>(f).store((uint8_t*)&back);
+ auto f = SkNx_cast<float>(Sk4b::Load(&color));
+ SkNx_cast<uint8_t>(f).store(&back);
junk ^= back;
}
blackhole ^= junk;