Skip to content

Provide support for fast integer types #631

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

Open
cramertj opened this issue Jun 28, 2017 · 4 comments
Open

Provide support for fast integer types #631

cramertj opened this issue Jun 28, 2017 · 4 comments
Labels
C-API-request Category: API request
Milestone

Comments

@cramertj
Copy link
Member

cramertj commented Jun 28, 2017

libc currently provides a number of convenient integer type aliases. However, the least and fast integer types (e.g. int_fast16_t, etc.) aren't currently included. Is there a reason for their exclusion, or is this just awaiting an implementation?

@alexcrichton
Copy link
Member

Nah just awaiting an implementation!

@gnzlbg gnzlbg added the C-API-request Category: API request label Nov 22, 2018
danielverkamp pushed a commit to danielverkamp/libc that referenced this issue Apr 28, 2020
@kellda
Copy link
Contributor

kellda commented Jul 25, 2020

After some research in apple's libc, musl and glibc, I found that [u]int_least(n)_t == [u]int(n)_t. For [u]int_fast(n)_t, however, it's more complicated:

bits 8 16 32 64
apple 8 16 32 64
glibc 32 char int int long long
glibc 64 char long long long
musl 8 32 32 64

How to know which typedef to put in this crate ?

@kellda
Copy link
Contributor

kellda commented Jul 27, 2020

@alexcrichton or someone else could you mentor me to implement fast types alises ?

@workingjubilee workingjubilee changed the title Provide support for least and fast integer types Provide support for fast integer types Mar 1, 2023
@workingjubilee
Copy link
Member

In #1838 it was noticed that the "least" aliases resolve exactly to our types, so they were omitted for the same reason that the fixed-width aliases were deprecated.

@tgross35 tgross35 added this to the 1.x milestone Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-API-request Category: API request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants