aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/opts/SkUtils_opts_arm_neon.cpp
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-06-26 11:10:28 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-26 11:10:28 -0700
commit05a2ac2872a8d7c5437bcce1b0828e20b4bb0eb4 (patch)
tree1d2ae45f13c71b0e74312a491427f176791ffba0 /src/opts/SkUtils_opts_arm_neon.cpp
parent4e7956147ddc8fa9747064a1df9ecfa2983b19b4 (diff)
Add extra braces for uintNNxMx4_t initializers.
These structs are always implemented as struct uintNNxMx4_t { uintNNxM val[4]; }; So, the first set of braces is for the struct, the second for val. BUG=skia: Review URL: https://codereview.chromium.org/1221453002
Diffstat (limited to 'src/opts/SkUtils_opts_arm_neon.cpp')
-rw-r--r--src/opts/SkUtils_opts_arm_neon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/opts/SkUtils_opts_arm_neon.cpp b/src/opts/SkUtils_opts_arm_neon.cpp
index b7d0504617..3a6be24399 100644
--- a/src/opts/SkUtils_opts_arm_neon.cpp
+++ b/src/opts/SkUtils_opts_arm_neon.cpp
@@ -10,7 +10,7 @@
void sk_memset32_neon(uint32_t dst[], uint32_t value, int count) {
uint32x4_t v4 = vdupq_n_u32(value);
- uint32x4x4_t v16 = { v4, v4, v4, v4 };
+ uint32x4x4_t v16 = {{ v4, v4, v4, v4 }};
while (count >= 16) {
vst4q_u32(dst, v16); // This swizzles, but we don't care: all lanes are the same, value.
@@ -37,7 +37,7 @@ void sk_memset32_neon(uint32_t dst[], uint32_t value, int count) {
void sk_memset16_neon(uint16_t dst[], uint16_t value, int count) {
uint16x8_t v8 = vdupq_n_u16(value);
- uint16x8x4_t v32 = { v8, v8, v8, v8 };
+ uint16x8x4_t v32 = {{ v8, v8, v8, v8 }};
while (count >= 32) {
vst4q_u16(dst, v32); // This swizzles, but we don't care: all lanes are the same, value.