[3.6] Remove nested comments in blake2 (GH-4173) by miss-islington · Pull Request #4214 · python/cpython (original) (raw)
Replace occurence of nested comments in blake2 reference implementation
with preprocessor directive for disabling unused code.
blake2s-load-xop.h
is conditionally pulled in only on chips with XOP
support, among others the AMD Bulldozer. The malformed comments in the
source file breaks the build of hashlib
's _blake2
on GCC 6.3.0.
Official reference code on github uses GH-if
so this change should be
uncontroversial.
(cherry picked from commit 388cd85)