3 ms·
It's doable without extra precision. SSE2 have some instructions operating on saturated integers, i.e. numbers stick to min/max instead of wrapping.
by Const-me 8y ago
It's doable without extra precision. SSE2 have some instructions operating on saturated integers, i.e. numbers stick to min/max instead of wrapping.
- Taniwha 8y agointernally the hardware that's doing this for you has to carry that extra precision (in a carry bit usually) in order to do this - it may not be architecturally visible but it has to be there
- Const-me 8y ago> it has to be there No it doesn't. For example, for single bit of precision, saturated addition is bitwise or, saturated subtraction is bitwise andnot. Obviously, the electronic doing these bitwise operations do not use any extra bits. Similarly, for higher count of bits, the electronic doing the math may or may not have that extra precision.