]> granicus.if.org Git - python/commit
Remove nested comments in blake2 (GH-4173) (#4214)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 1 Nov 2017 12:58:40 +0000 (05:58 -0700)
committerChristian Heimes <christian@python.org>
Wed, 1 Nov 2017 12:58:40 +0000 (12:58 +0000)
commitf44a6299e2fd2154436df2774c142ca4a7e64b3a
tree90d8724dcc2b706a7dc124d897e9de15d1524598
parentff6ae4de3874f4922a5883f08bb661c93834b060
Remove nested comments in blake2 (GH-4173) (#4214)

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 388cd85e51aa9c73f8e7f35f0d06c258be7b579c)
Modules/_blake2/impl/blake2s-load-xop.h