|
|
|
|
|
by flopsamjetsam
33 days ago
|
|
From the Wikipedia article: > However, it is possible to implement saturating addition and subtraction in software without branches, using only modular arithmetic and bitwise logical operations that are available on all modern CPUs and their predecessors, including all x86 CPUs (back to the original Intel 8086) and some popular 8-bit CPUs (some of which implement the Z80 instruction set) are still in production. Does anyone know what the implementation of this is, without conditional moves? |
|