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

πŸ§‘β€πŸ’» Width/Magnitude-based types #25458

Merged

Conversation

thinkyhead
Copy link
Member

@thinkyhead thinkyhead commented Mar 3, 2023

Shorthand macros to define minimal-sized types based on the number of bits or max value needed.

bits_t(W) : Provide an unsigned type to fit W bits.
uvalue_t(V) : Provide an unsigned value to hold values up to V.
value_t(V) : Provide a signed value to hold values up to V.

@thinkyhead thinkyhead force-pushed the bf2_sized_types_PR branch 15 times, most recently from 2e64518 to 4766e42 Compare March 4, 2023 01:23
@thinkyhead thinkyhead force-pushed the bf2_sized_types_PR branch from 4766e42 to afb9fe5 Compare March 4, 2023 01:28
@thinkyhead thinkyhead merged commit f0c8c91 into MarlinFirmware:bugfix-2.1.x Mar 4, 2023
@thinkyhead thinkyhead deleted the bf2_sized_types_PR branch March 4, 2023 02:44
LMBernardo pushed a commit to LMBernardo/Marlin that referenced this pull request Mar 19, 2023
EvilGremlin pushed a commit to EvilGremlin/Marlin that referenced this pull request Apr 8, 2023
thinkyhead added a commit to thinkyhead/Marlin that referenced this pull request May 16, 2023
EvilGremlin pushed a commit to EvilGremlin/Marlin that referenced this pull request May 17, 2023
tspiva pushed a commit to tspiva/Marlin that referenced this pull request May 25, 2023
Andy-Big pushed a commit to Andy-Big/Marlin_FB_Reborn that referenced this pull request Jul 9, 2023
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.

1 participant