You *might* be able to squeeze out a bit of performance implementing this as `return frontIndex  < backIndex `, as (AFAIK) a compare is faster than an "add, add, cmpz". Also, it avoids an extra function call in non-inline.