3 ms·
gcc will easily miscompile code with signed overflow. But you do not have to use signed integers, you can map your range to an unsigned integer range (for exam
by gpderetta 5y ago
gcc will easily miscompile code with signed overflow.
But you do not have to use signed integers, you can map your range to an unsigned integer range (for example [-pi, pi) -> [0, 2*16)