aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkNx.h
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2016-07-29 10:10:15 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-07-29 10:10:15 -0700
commitd05a8752738f84b0115678b3cdad89237173e904 (patch)
tree65fa13ac0eec5bad711f84758eb98ff271c9b6ce /src/core/SkNx.h
parent4ef6dfa7089c092c67b0d5ec34e89c1e319af196 (diff)
SkNx: add Sk4u
This lets us get at logical >> in a nicely principled way. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2197683002 CQ_INCLUDE_TRYBOTS=master.client.skia:Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-SKNX_NO_SIMD-Trybot Review-Url: https://codereview.chromium.org/2197683002
Diffstat (limited to 'src/core/SkNx.h')
-rw-r--r--src/core/SkNx.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkNx.h b/src/core/SkNx.h
index 308addd928..881a475ce0 100644
--- a/src/core/SkNx.h
+++ b/src/core/SkNx.h
@@ -293,7 +293,8 @@ typedef SkNx<4, uint16_t> Sk4h;
typedef SkNx<8, uint16_t> Sk8h;
typedef SkNx<16, uint16_t> Sk16h;
-typedef SkNx<4, int> Sk4i;
+typedef SkNx<4, int32_t> Sk4i;
+typedef SkNx<4, uint32_t> Sk4u;
// Include platform specific specializations if available.
#if !defined(SKNX_NO_SIMD) && SK_CPU_SSE_LEVEL >= SK_CPU_SSE_LEVEL_SSE2