On Thu, Jan 31, 2013 at 12:30 PM, Geoffrey Mainland <span dir="ltr"><<a href="mailto:mainland@apeiron.net" target="_blank">mainland@apeiron.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":5r">2) SSE support is processor and platform dependent. What is the proper<br>
way for the programmer to know what SSE primitives are available? A CPP<br>
define? If so, what should it be called?<br></div></blockquote></div><br>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.<div>
<br></div><div>Johan added some support for the compile-time bit recently.</div>