Changed queue head/tail update code to not depend on modulus operator.
Changed queue head/tail update code to not depend on modulus operator.

- The mod operator usually requires a library call.

flit/argon-rtos,flit/argon-rtos