Closed gudnimg closed 1 year ago
Since head and tail are unsigned, with same bit width and always a power of 2, head - tail is always valid.
head - tail
For example, head = 2, tail = 254 will yield 2 - 254 = 4
2 - 254 = 4
Sadly there is no change in memory
Took a look at the assembly output. It seems the generated assembly output is the same.
Since head and tail are unsigned, with same bit width and always a power of 2,
head - tail
is always valid.For example, head = 2, tail = 254 will yield
2 - 254 = 4
Sadly there is no change in memory