7 ms·
Surely it must be (23 - size) << 1, otherwise you won't guarantee a 0 in the LSB.
by lilyball 7y ago
Surely it must be (23 - size) << 1, otherwise you won't guarantee a 0 in the LSB.
- edflsafoiewq 7y agoIf you use the LSB of the last byte for a flag, you're using the 56th bit of one of the {data,size,cap} words. I'd use the MSB in this case, since you can shift that off easier.
- SamReidHughes 7y agoOn little endian systems it uses two MSb's, on big endian systems it uses two LSb's. There are actually two flag bits.