51
edits
Changes
→Arithmetic operations
== Arithmetic operations ==
Clearly, following basic operations are needed:
* Addition, optionally saturating
* Subtraction, optionally saturating
* Multiplication
Division on modern CPUs can be achieved much faster using reciprocal multiplication. However, for ease of programming it might still make sense to offer a direct division operation (if the divisor can be detected to be static, the JIT engine may still convert it to reciprocal multiplication for full speed).
== Logical operations ==