Funrolling the innermost loop.