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

24-bit integer types in stdint.h #301

Open
mysterymath opened this issue Oct 10, 2023 · 1 comment
Open

24-bit integer types in stdint.h #301

mysterymath opened this issue Oct 10, 2023 · 1 comment
Labels
enhancement New feature or request p3

Comments

@mysterymath
Copy link
Member

mysterymath commented Oct 10, 2023

It looks (cursorily) like we're within our rights to establish 24-bit integer types in stdint.h. The _BitInt(24) extension for this isn't very well known, and it's come up a few times that this is a desirable type, so we should look into making it work the same way as the other stdint types.

@mysterymath mysterymath added enhancement New feature or request p1 p2 and removed p1 labels Oct 10, 2023
@mysterymath mysterymath changed the title uint24_t type in stdint.h 24-bit integer types in stdint.h Oct 10, 2023
@mysterymath mysterymath added p1 and removed p2 labels Nov 13, 2023
@mysterymath
Copy link
Member Author

It looks like this comes with the additional requirement to specify format strings for these types in inttypes.h. That will be difficult without getting really creative with the printf format string; we can probably do it, but it will be difficult. Accordingly, bumping this down to p3; _Bitint suffices for now, as it makes it explicit that it's an extension, not a natively-supported integer type as defined by the C standard.

@mysterymath mysterymath added p3 and removed p1 labels Jan 13, 2024
@mysterymath mysterymath transferred this issue from llvm-mos/llvm-mos Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p3
Projects
None yet
Development

No branches or pull requests

1 participant