@@ -85,6 +85,7 @@ DEV_INLINE bool compute_hash(uint64_t nonce, sycl::uint2 *mix_hash, sycl::nd_ite
85
85
shuffle[7 ].x () = item_ct1.get_sub_group ().shuffle (state[7 ].x (), i + p + iShuffleOffset);
86
86
shuffle[7 ].y () = item_ct1.get_sub_group ().shuffle (state[7 ].y (), i + p + iShuffleOffset);
87
87
88
+ assert (mix_idx <= 3 );
88
89
89
90
switch (mix_idx) {
90
91
case 0 :
@@ -96,9 +97,9 @@ DEV_INLINE bool compute_hash(uint64_t nonce, sycl::uint2 *mix_hash, sycl::nd_ite
96
97
case 2 :
97
98
mix[p] = vectorize2 (shuffle[4 ], shuffle[5 ]);
98
99
break ;
99
- case 3 :
100
- mix[p] = vectorize2 (shuffle[6 ], shuffle[7 ]);
101
- break ;
100
+ default :
101
+ mix[p] = vectorize2 (shuffle[6 ], shuffle[7 ]);
102
+ break ;
102
103
}
103
104
104
105
init0[p] = item_ct1.get_sub_group ().shuffle (shuffle[0 ].x (), iShuffleOffset);
@@ -182,6 +183,7 @@ DEV_INLINE bool compute_hash(uint64_t nonce, sycl::uint2 *mix_hash, sycl::nd_ite
182
183
shuffle_7.y () = item_ct1.get_sub_group ().shuffle (state[7 ].y (), i + p + iShuffleOffset);
183
184
184
185
// ///}
186
+ assert (mix_idx <= 3 );
185
187
186
188
switch (mix_idx) {
187
189
case 0 :
@@ -193,9 +195,9 @@ DEV_INLINE bool compute_hash(uint64_t nonce, sycl::uint2 *mix_hash, sycl::nd_ite
193
195
case 2 :
194
196
mix[p] = vectorize2 (shuffle_4, shuffle_5);
195
197
break ;
196
- case 3 :
197
- mix[p] = vectorize2 (shuffle_6, shuffle_7);
198
- break ;
198
+ default :
199
+ mix[p] = vectorize2 (shuffle_6, shuffle_7);
200
+ break ;
199
201
}
200
202
201
203
init0[p] = item_ct1.get_sub_group ().shuffle (shuffle_0.x (), iShuffleOffset);
0 commit comments