News for hackers. Stuff that matters.
Re:Is this prime? by uxcn on Saturday March 12, 2016 @02:21PM (#11274080)
x87 is largely deprecated. Try inspecting the code emitted for floating point by all the major compilers.
Re:Is this prime? by nibnib on Monday March 14, 2016 @06:17AM (#11281934)
You are correct. It looks like SSE sqrt matches or beats fsqrt too.
Re:Is this prime? by uxcn on Monday March 14, 2016 @05:26PM (#11285691)
SSE performance is better than x87, for a number of reasons. Latency and throughput are generally better, but SSE also supports SIMD which allows more than one op per instruction. SSE also has more registers (x87 only has 8 80bit compared to at least 16 128bit). If I'm not mistaken, the number of available execution units with SSE is also larger, which means more opportunities for instruction level parallelism.

These are why modern compilers don't emit x87 for floating point.