I wonder if fixed point arithmetic would go significantly faster than regular floats.
I wonder if this would be useful for scientific calculations (like Molecular Dynamics).
Cc @scemama
A very good reference for throughput and latencies of CPU instructions is this document:
Based on this data, I would say that in the general case (64 bits) it would be slower:
Integer division usually takes more cycles than float division
There is no equivalent of fused multiply-add with integers
It will require a conversion to float call high-performance libraries like BLAS
In OCaml, there is a special treatment for float arrays to improve performance.
For memory-bound algorithms, if a fixed-point format with a reduced number of bits can be used without loss of precision, it could be beneficial by increasing the memory throughput.