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

Unified Diff: bench/Sk4fBench.cpp

Issue 1650653002: SkNx Load/store: take any pointer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: simplify call sites Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/core/SkColor.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bench/Sk4fBench.cpp
diff --git a/bench/Sk4fBench.cpp b/bench/Sk4fBench.cpp
index 1daa3f29736a09464e072a92d73ed204c1444da7..712a65776d8dc8d9667e447adac9c204d254236b 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;
« no previous file with comments | « no previous file | src/core/SkColor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698