Skip to content

Commit b12f35b

Browse files
committed
Fix build error
1 parent a6d1270 commit b12f35b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

system/include/compat/avx2intrin.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,9 +1051,9 @@ static __inline__ __m256i
10511051
index[i + 4] = ((__i32x4)__b.v1)[i] & 7;
10521052
}
10531053

1054-
for (int i = 0; i < 8; i++) {
1055-
lane[i] = index[i] < 4 ? ((__i32x4)(__a.v0))[index[i]]
1056-
: ((__i32x4)(__a.v1))[index[i] - 4];
1054+
for (int j = 0; j < 8; j++) {
1055+
lane[j] = index[j] < 4 ? ((__i32x4)(__a.v0))[index[j]]
1056+
: ((__i32x4)(__a.v1))[index[j] - 4];
10571057
}
10581058

10591059
ret.v0 = (__m128i)wasm_i32x4_make(lane[0], lane[1], lane[2], lane[3]);
@@ -1081,9 +1081,9 @@ static __inline__ __m256
10811081
index[i] = ((__i32x4)__b.v0)[i] & 7;
10821082
index[i + 4] = ((__i32x4)__b.v1)[i] & 7;
10831083
}
1084-
for (int i = 0; i < 8; i++) {
1085-
lane[i] = index[i] < 4 ? ((__f32x4)(__a.v0))[index[i]]
1086-
: ((__f32x4)(__a.v1))[index[i] - 4];
1084+
for (int j = 0; j < 8; j++) {
1085+
lane[j] = index[j] < 4 ? ((__f32x4)(__a.v0))[index[j]]
1086+
: ((__f32x4)(__a.v1))[index[j] - 4];
10871087
}
10881088
ret.v0 = (__m128)wasm_f32x4_make(lane[0], lane[1], lane[2], lane[3]);
10891089
ret.v1 = (__m128)wasm_f32x4_make(lane[4], lane[5], lane[6], lane[7]);

0 commit comments

Comments
 (0)