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
There exists a pre-defined macro as below, on the given memmgr.c file.
memmgr.c
#define STATUS_MASK ((TYPE)(0x7)) ///< mask to retrieve flags from header/footer
Shouldn't this be 0x1, not 0x7?
0x1
0x7
The text was updated successfully, but these errors were encountered:
Block size should be a multiple of 32 so that the last 4 degrees of size is 0000 as a binary number.
If the status is free: the last 4 degree of header/footer -> 0000 If the status is allocated: the last 4 degree of header/footer -> 0001
So it's no matter to set STATUS_MASK as 1111, 0111, 0011, or 0001. ( respectively equal to 0xf, 0x7, 0x3, 0x1)
Sorry, something went wrong.
No branches or pull requests
There exists a pre-defined macro as below, on the given
memmgr.c
file.Shouldn't this be
0x1
, not0x7
?The text was updated successfully, but these errors were encountered: