Open cpcitor opened 6 years ago
For fun. It's sometimes useful.
The greatest common divisor has an interesting algorithm where divisions are needed only to divide by 2, the binary GCD algorithm and a C-level implementation that can be further optimized for the Z80 where even shifts are a little costly.
For fun. It's sometimes useful.
The greatest common divisor has an interesting algorithm where divisions are needed only to divide by 2, the binary GCD algorithm and a C-level implementation that can be further optimized for the Z80 where even shifts are a little costly.