Skip to content

Commit

Permalink
Update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Apr 7, 2020
1 parent e65d10d commit 1cb3ff8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions blake2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,17 @@ unsigned int BLAKE2b::OptimalDataAlignment() const
{
#if defined(CRYPTOPP_SSE41_AVAILABLE)
if (HasSSE41())
return 16;
return 16; // load __m128i
else
#endif
#if (CRYPTOPP_ARM_NEON_AVAILABLE)
if (HasNEON())
return 4;
return 8; // load uint64x2_t
else
#endif
#if (CRYPTOPP_POWER8_AVAILABLE)
if (HasPower8())
return 16;
return 16; // load vector long long
else
#endif
return GetAlignmentOf<word64>();
Expand Down Expand Up @@ -233,17 +233,17 @@ unsigned int BLAKE2s::OptimalDataAlignment() const
{
#if defined(CRYPTOPP_SSE41_AVAILABLE)
if (HasSSE41())
return 16;
return 16; // load __m128i
else
#endif
#if (CRYPTOPP_ARM_NEON_AVAILABLE)
if (HasNEON())
return 4;
return 4; // load uint32x4_t
else
#endif
#if (CRYPTOPP_ALTIVEC_AVAILABLE)
if (HasAltivec())
return 16;
return 16; // load vector unsigned int
else
#endif
return GetAlignmentOf<word32>();
Expand Down

0 comments on commit 1cb3ff8

Please sign in to comment.