A.r-f; B.(n+f-r)%n; C.n+r-f; D.(n+r-F.%n
A.QU->rear-QU->front==m0 B.QU->rear-QU->front-1==m0 C.QU->front==QU->rear D.QU->front==QU->rear+1