We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Good feedback from Edward. A boolean as a struct field wastes 31 bits. I think we can use C's ability to specify bitwidths as follows
struct MyStruct { bool first: 1; bool second: 1; int small_int:6 int bigger_int:8 int biggest_int:16 };
This should all fit in one 32bit word
The text was updated successfully, but these errors were encountered:
I don't think you can assume the compiler will put these in a 32-bit word. What I had in mind was more like this:
struct my_struct_t { int32_t flags; ... }
Then have macros like FIRST(struct) and SECOND(struct) that you use in conditionals.
FIRST(struct)
SECOND(struct)
Sorry, something went wrong.
Then what is the meaning of int a:4? I thought it was exactly for this purpose?
int a:4
Oh, I don't know. I'm not familiar with that syntax.
No branches or pull requests
Good feedback from Edward. A boolean as a struct field wastes 31 bits. I think we can use C's ability to specify bitwidths as follows
This should all fit in one 32bit word
The text was updated successfully, but these errors were encountered: