4 ms·
It would be prohibitively slow. Division and modulus are the slowest integer operations.
by zerohp 12y ago
It would be prohibitively slow. Division and modulus are the slowest integer operations.
- TheLoneWolfling 12y agoCorrection: Division by arbitrary integer valued variables are the slowest integer operations. You can accomplish division by a constant / modulus by a constant without a full division, however. For example, (x == x % 256 - x * 256), mod 257. That sort of thing.