Hi guys,

I played with result differences on 32/64 bit systems today, and here is
something interesting revealed by one sputnik test:

sputnik/Conformance/15_Native_Objects/15.8_Math/15.8.2/15.8.2.16_sin/S15.8.2.16_A7.html

Try this snippet on a 32 and a 64 bit system:

#include <math.h>
#include <stdio.h>

int main()
{
     int i;
     double d = 6.283185307179586, k;

     for (i = 0; i < 10000000; ++i)
          k = sin(d);
     return 0;
}

The 32 bit is 15x faster. Why? Because it simply calls fsin, while the 64
bit has an own SSE2 based implementation. I know x87 is obsolote and
everything, but it is 15x faster... Shall we optimize this?

Regards,
Zoltan


_______________________________________________
squirrelfish-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/squirrelfish-dev

Reply via email to