simd branch ready for review

Bryan O'Sullivan bos at
Thu Jan 31 21:40:40 CET 2013

On Thu, Jan 31, 2013 at 12:30 PM, Geoffrey Mainland <mainland at>wrote:

> 2) SSE support is processor and platform dependent. What is the proper
> way for the programmer to know what SSE primitives are available? A CPP
> define? If so, what should it be called?

This needs a combination of compile-time and run-time information. The
compiler can tell you what instructions it's willing to use, but you also
have to ask the CPU at runtime what it supports, otherwise you'll end up
with crashes when people move code from a machine that has SSE4.2 to a
machine that has SSE2.

Johan added some support for the compile-time bit recently.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the ghc-devs mailing list