Faster C implementation for renormalization