<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div><div>On 25.12.2010, at 0:20, Henning Thielemann wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>On 13.12.2010 16:38, Pavel Perikov wrote:<br><blockquote type="cite">Is it possible to make GHC-7.0.1 to generate intrinsic instructions instead of calls to C library to compute trigonometric functions?<br></blockquote><blockquote type="cite"><font class="Apple-style-span" color="#144FAE"><font class="Apple-style-span" color="#006312"><br></font></font></blockquote>As far as I remember GHC generates FPU instructions for sinus and friends with its native code generator. However, I noted that LLVM does not do this and always jumps into the C library, although it is documented otherwise.<br></div></blockquote></div>ok, I'm answering my own question here. -fasm indeed uses intrinsic operations in x87 mode. Sadly SSE does not have trigonometric and instructions, though series expansions using SSE2 instructions is usually _faster_ than fsin/fcos. So the behavior is expected.<div><br></div><div>P.</div></div></body></html>