Re:Will it optimize?
by astrange on Sunday July 25, 2010 @12:58AM
(#1545008)
Only in architectures where FP and integer values are kept in the same registers. This is true in SSE2 and Altivec, so you can do integer operations there - but since SIMD integer operations are limited too, it's pretty much only useful for flipping the sign bit.
Moving values between different register sets is INCREDIBLY slow since it involves at least two memory operations.
And faking FP operations with specialized integer code on something with soft-float like ARM might be worth it. I've never done it so I can't really say.
Moving values between different register sets is INCREDIBLY slow since it involves at least two memory operations.
And faking FP operations with specialized integer code on something with soft-float like ARM might be worth it. I've never done it so I can't really say.