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

Unified Diff: src/opts/SkUtils_opts_arm_neon.cpp

Issue 1221453002: Add extra braces for uintNNxMx4_t initializers. (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/opts/SkUtils_opts_arm_neon.cpp
diff --git a/src/opts/SkUtils_opts_arm_neon.cpp b/src/opts/SkUtils_opts_arm_neon.cpp
index b7d05046178bfb2d77157d91cfb69adab0235a8d..3a6be24399b3047a386e3447a3a28f9621866046 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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698