base.mulinv moved to primes.invmul