Reuse the code moved to the modulw const