top | item 13187077 (no title) rkevingibson | 9 years ago I'm curious what you think the problems are that unbounded indices causes? Unsigned overflow is well defined in C++, so I don't see the problem here. AFAIK, the only issue would be with requiring power of 2 sizes. discuss order hn newest loeg|9 years ago Yeah. Just requires power of 2 sizes and handling of write_idx < read_idx. ashtuchkin|9 years ago AFAIK write_idx < read_idx case is handled automatically by doing the unsigned subtraction.Power of 2 requirement stands, though. load replies (1)
loeg|9 years ago Yeah. Just requires power of 2 sizes and handling of write_idx < read_idx. ashtuchkin|9 years ago AFAIK write_idx < read_idx case is handled automatically by doing the unsigned subtraction.Power of 2 requirement stands, though. load replies (1)
ashtuchkin|9 years ago AFAIK write_idx < read_idx case is handled automatically by doing the unsigned subtraction.Power of 2 requirement stands, though. load replies (1)
loeg|9 years ago
ashtuchkin|9 years ago
Power of 2 requirement stands, though.