| commit | 17860e578cab13d5aacf8b5e6e373e59403352ba | [log] [tgz] |
|---|---|---|
| author | Gael Guennebaud <g.gael@free.fr> | Wed Mar 25 12:26:13 2009 +0000 |
| committer | Gael Guennebaud <g.gael@free.fr> | Wed Mar 25 12:26:13 2009 +0000 |
| tree | 285e8ef963751a1a96ea127457ff51cf44a6cf16 | |
| parent | 64fbd93cd904790e831aa5404698c5aa30f54be4 [diff] |
add SSE2 versions of sin, cos, log, exp using code from Julien Pommier. They are for float only, and they return exactly the same result as the standard versions in about 90% of the cases. Otherwise the max error is below 1e-7. However, for very large values (>1e3) the accuracy of sin and cos slighlty decrease. They are about 3 or 4 times faster than 4 calls to their respective standard versions. So, is it ok to enable them by default in their respective functors ?