Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ABI: uint8 too small for potential complex quad itemsize bits? #73

Open
seberg opened this issue May 25, 2021 · 1 comment
Open

ABI: uint8 too small for potential complex quad itemsize bits? #73

seberg opened this issue May 25, 2021 · 1 comment

Comments

@seberg
Copy link
Contributor

seberg commented May 25, 2021

If quad-precision takes off, then the current uint8 for the itemsize cannot represent the 128+128 = 256 bits of a complex quad number. Even now that would fail for most long double storage formats (those cannot be represented right now, so I am not sure it matters).

If an ABI break is necessary in the future, maybe this should be bumped to uint16 (maybe some other ones as well)? I guess there will be other ways to work around the limitation, though. And I admit quad-precision complex may well be as bad as it gets and is just at the limit.

@leofang
Copy link
Contributor

leofang commented Jun 7, 2021

We should list a few items that would be great to do if we plan to break ABI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants