2 ms·
Well, that's what the compiler is for! PyPy uses SSE under the hood for various float handing things.
by kingkilr 16y ago
Well, that's what the compiler is for! PyPy uses SSE under the hood for various float handing things.
- onan_barbarian 16y agoUnfortunately, SSE - especially in integer-land, so I suppose we're talking SSE2 and beyond - often requires more specialist care and feeding than any automatic method (compiler or run-time) can provide. Some cases aren't hard to pick up (e.g. bulk operations on big arrays) but others require trickery of the kind that compilers usually don't (or couldn't) have. This isn't made easier by the notoriously non-orthogonal nature of the SSE integer operations and the rather limited number of ways that you can get in and out of SSE-land (to, say, affect a conditional or get something into a GPR).
- igouy 16y agoAlso "J2SE platform version 1.4.2 now uses SSE and SSE2 instruction sets for floating point computations".