Optimized and portable routines for integer theoretic applications
