You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But if a number is left shift for 3 bits, the highest bit will be overflow. So the result is independent of whether the highest bit is 0 or 1. The first calculation can be removed.
The text was updated successfully, but these errors were encountered:
static char* s_get_next_block( char* ptr )
{
return ( char* )( ( ( u32 )ptr & 0x7FFFFFFF ) << DYN_SIZE_MULT_SHIFT );
}
This function is made of two calculations:
But if a number is left shift for 3 bits, the highest bit will be overflow. So the result is independent of whether the highest bit is 0 or 1. The first calculation can be removed.
The text was updated successfully, but these errors were encountered: