Commit db4bdde
gh-138114: Enable HACL BLAKE2 SIMD128 vectorization on PowerPC64
The HACL* library's libintvector.h already contains a complete
PowerPC64 AltiVec/VSX implementation of vec128 operations (lines
800-926), but CPython's configure never enables it because the
SIMD128 detection only checks for x86 SSE.
This adds PowerPC64 detection as a fallback in the SSE check's
else-branch of configure.ac, testing for -maltivec -mvsx compiler
flags, which enables SIMD-accelerated BLAKE2s hashing on POWER8+.
This implements the TODO at configure.ac line 8113:
"This can be extended here to detect e.g. Power8, which HACL*
should also support."
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 70c7e04 commit db4bdde
File tree
3 files changed
+74
-2
lines changed- Misc/NEWS.d/next/Build
3 files changed
+74
-2
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8110 | 8110 | | |
8111 | 8111 | | |
8112 | 8112 | | |
8113 | | - | |
| 8113 | + | |
8114 | 8114 | | |
8115 | 8115 | | |
8116 | 8116 | | |
| |||
8129 | 8129 | | |
8130 | 8130 | | |
8131 | 8131 | | |
8132 | | - | |
| 8132 | + | |
| 8133 | + | |
| 8134 | + | |
| 8135 | + | |
| 8136 | + | |
| 8137 | + | |
| 8138 | + | |
| 8139 | + | |
| 8140 | + | |
| 8141 | + | |
| 8142 | + | |
| 8143 | + | |
| 8144 | + | |
| 8145 | + | |
8133 | 8146 | | |
8134 | 8147 | | |
8135 | 8148 | | |
| |||
0 commit comments