Re:Yes, You Have Been Writing SPSC Queues Wrong
by gpderetta on Thursday December 15, 2016 @05:20PM
(#13189105)
Yes, this exact trick is used for tcp sequence numbers, for example, which are allowed to overflow, and as long as the unack'd bytes are less than 231 everything works fine as long as computation is done with unsigned integers.
Power of 2 requirement stands, though.