Using const on the mask[] array in this particular code causes a performance hit. (From Is there an intrinsic function to zero out the last n bytes of
const
mask[]