File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -193,17 +193,17 @@ unsigned int BLAKE2b::OptimalDataAlignment() const
193
193
{
194
194
#if defined(CRYPTOPP_SSE41_AVAILABLE)
195
195
if (HasSSE41 ())
196
- return 16 ;
196
+ return 16 ; // load __m128i
197
197
else
198
198
#endif
199
199
#if (CRYPTOPP_ARM_NEON_AVAILABLE)
200
200
if (HasNEON ())
201
- return 4 ;
201
+ return 8 ; // load uint64x2_t
202
202
else
203
203
#endif
204
204
#if (CRYPTOPP_POWER8_AVAILABLE)
205
205
if (HasPower8 ())
206
- return 16 ;
206
+ return 16 ; // load vector long long
207
207
else
208
208
#endif
209
209
return GetAlignmentOf<word64>();
@@ -233,17 +233,17 @@ unsigned int BLAKE2s::OptimalDataAlignment() const
233
233
{
234
234
#if defined(CRYPTOPP_SSE41_AVAILABLE)
235
235
if (HasSSE41 ())
236
- return 16 ;
236
+ return 16 ; // load __m128i
237
237
else
238
238
#endif
239
239
#if (CRYPTOPP_ARM_NEON_AVAILABLE)
240
240
if (HasNEON ())
241
- return 4 ;
241
+ return 4 ; // load uint32x4_t
242
242
else
243
243
#endif
244
244
#if (CRYPTOPP_ALTIVEC_AVAILABLE)
245
245
if (HasAltivec ())
246
- return 16 ;
246
+ return 16 ; // load vector unsigned int
247
247
else
248
248
#endif
249
249
return GetAlignmentOf<word32>();
You can’t perform that action at this time.
0 commit comments