Please sign in to comment.
pp_divide: use modulo instead of multiplication
On most architectures with hardware integer division (like x86 or aarch64), division instruction returns both the remainder and the quotient. It means that performing modulo operation immediately after division using the same operands is 100% free. Essentially this commit changes "div" and "mul" into a single "div" instruction, which results in minor speed up. [perl #133511]
- Loading branch information...