Update comments
parent
b61da7acfe
commit
e40de18538
|
|
@ -8,9 +8,9 @@
|
||||||
// appropriate instructions sets in some build configurations.
|
// appropriate instructions sets in some build configurations.
|
||||||
|
|
||||||
// The BLAKE2b and BLAKE2s numbers are consistent with the BLAKE2 team's
|
// The BLAKE2b and BLAKE2s numbers are consistent with the BLAKE2 team's
|
||||||
// numbers. However, we have an Altivec/POWER7 implementation of BLAKE2s,
|
// numbers. However, we have an Altivec/POWER8 implementation of BLAKE2s,
|
||||||
// and a POWER8 implementation of BLAKE2b (BLAKE2 is missing them). The
|
// and a POWER8 implementation of BLAKE2b (BLAKE2 is missing them). The
|
||||||
// Altivec/POWER7 code is about 2x faster than C++ when using GCC 5.0 or
|
// Altivec/POWER8 code is about 2x faster than C++ when using GCC 5.0 or
|
||||||
// above. The POWER8 code is about 2.5x faster than C++ when using GCC 5.0
|
// above. The POWER8 code is about 2.5x faster than C++ when using GCC 5.0
|
||||||
// or above. If you use GCC 4.0 (PowerMac) or GCC 4.8 (GCC Compile Farm)
|
// or above. If you use GCC 4.0 (PowerMac) or GCC 4.8 (GCC Compile Farm)
|
||||||
// then the PowerPC code will be slower than C++. Be sure to use GCC 5.0
|
// then the PowerPC code will be slower than C++. Be sure to use GCC 5.0
|
||||||
|
|
@ -38,7 +38,6 @@
|
||||||
// https://github.com/weidai11/cryptopp/issues/743
|
// https://github.com/weidai11/cryptopp/issues/743
|
||||||
#if defined(__xlC__) && (__xlC__ < 0x0d01)
|
#if defined(__xlC__) && (__xlC__ < 0x0d01)
|
||||||
# define CRYPTOPP_DISABLE_ALTIVEC 1
|
# define CRYPTOPP_DISABLE_ALTIVEC 1
|
||||||
# undef CRYPTOPP_POWER7_AVAILABLE
|
|
||||||
# undef CRYPTOPP_POWER8_AVAILABLE
|
# undef CRYPTOPP_POWER8_AVAILABLE
|
||||||
# undef CRYPTOPP_ALTIVEC_AVAILABLE
|
# undef CRYPTOPP_ALTIVEC_AVAILABLE
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -863,10 +862,10 @@ uint32x4_p VectorSet32<3,1,3,1>(const uint32x4_p a, const uint32x4_p b,
|
||||||
return VecPermute(a, c, mask);
|
return VecPermute(a, c, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
// BLAKE2_Compress32_CORE will use either POWER7 or ALTIVEC,
|
// BLAKE2_Compress32_CORE will use either POWER8 or ALTIVEC,
|
||||||
// depending on the flags used to compile this source file. The
|
// depending on the flags used to compile this source file. The
|
||||||
// abstractions are handled in VecLoad, VecStore and friends. In
|
// abstractions are handled in VecLoad, VecStore and friends. In
|
||||||
// the future we may to provide both POWER7 or ALTIVEC at the same
|
// the future we may provide both POWER8 or ALTIVEC at the same
|
||||||
// time to better support distros.
|
// time to better support distros.
|
||||||
void BLAKE2_Compress32_CORE(const byte* input, BLAKE2s_State& state)
|
void BLAKE2_Compress32_CORE(const byte* input, BLAKE2s_State& state)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue