Skip to content

gh-145633: remove support for ancient ARM platforms with mixed-endian doubles#145634

Open
skirpichev wants to merge 3 commits intopython:mainfrom
skirpichev:remove-unknown_format
Open

gh-145633: remove support for ancient ARM platforms with mixed-endian doubles#145634
skirpichev wants to merge 3 commits intopython:mainfrom
skirpichev:remove-unknown_format

Conversation

@skirpichev
Copy link
Member

@skirpichev skirpichev commented Mar 8, 2026

  • drop DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 macro
  • use DOUBLE_IS_BIG/LITTLE_ENDIAN_IEEE754 to detect endianness of float/doubles
  • drop "unknown_format" code path in PyFloat_Pack/Unpack*()

…endian doubles

* drop DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 macro
* use DOUBLE_IS_BIG/LITTLE_ENDIAN_IEEE754 to detect endianness of
  float/doubles
* drop "unknown_format" code path in PyFloat_Pack/Unpack*()
@skirpichev
Copy link
Member Author

skirpichev commented Mar 8, 2026

I'll prepare removal of __getformat__ in a separate commit.

Edit: Mark Dickinson suggested to keep this for alternative Python implementations.

@corona10
Copy link
Member

corona10 commented Mar 8, 2026

cc @diegorusso

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants