On Thu, Jan 31, 2013 at 12:30 PM, Geoffrey Mainland <mainland@apeiron.net> 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.