]> granicus.if.org Git - python/commit
Remove nested comments in blake2 (#4173)
authorLars Viklund <zao@zao.se>
Wed, 1 Nov 2017 12:23:09 +0000 (13:23 +0100)
committerChristian Heimes <christian@python.org>
Wed, 1 Nov 2017 12:23:09 +0000 (12:23 +0000)
commit388cd85e51aa9c73f8e7f35f0d06c258be7b579c
treefa83ac45fc6ccc3dc207e0d1e4805f33ee32e1ab
parent8bc7d63560024681dce9f40445f2877b2987e92c
Remove nested comments in blake2 (#4173)

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 `#if` so this change should be
uncontroversial.
Modules/_blake2/impl/blake2s-load-xop.h