gh-148474: Fix _Py_hexlify_simd compilation with older clang by jmroot · Pull Request #148475 · python/cpython

Conversation

@jmroot

@jmroot jmroot commented

Apr 12, 2026

edited by bedevere-app bot

Loading

Apple clang prior to around Xcode 9 does not automatically generate a vector from a scalar shift operator RHS in this case. Doing it explicitly works with all versions and arguably also makes it clearer what is actually happening.

Apple clang prior to around Xcode 9 does not automatically generate a
vector from a scalar shift operator RHS in this case. Doing it
explicitly works with all versions and arguably also makes it clearer
what is actually happening.

picnixz

picnixz

picnixz

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@picnixz

I hope that my NEWS entry change is correct (I don't know if we had the c file directives correctly set up)

Labels

2 participants

@jmroot @picnixz