I have the following algorithm:
if(queue->rear == queue-maxsize)
queue->rear = 0;
queue-queueAry[queue->rear] = itemPtr;
All that this is doing is checking to see if the queue is full and then inserting the item at the beginning of the queue if it is. The thing is, I need to do this without using an if statement, any suggestions??