Re:New integer types I’d like to see
by phkahler on Friday September 30, 2022 @10:07AM
(#33035003)
Saturating arithmetic is available on some DSPs and may be available to C programs via #pragma on those architectures. IMHO this is a burden to every ALU and instruction that does not need the feature. We should not push application specific features like that down to the basic hardware. We'd also need to provide language support for it.
[ Parent
| on HN ]
Re:New integer types I’d like to see
by brandmeyer on Friday September 30, 2022 @10:58AM
(#33035789)
Saturating arithmetic is probably not all that expensive, since its been in every ARM SIMD unit (and sometimes also scalar) for many years. You just pay a little bit in latency when using those instructions.