
On Wed, Mar 30, 2011 at 8:16 AM, Mathias Gaunard <mathias.gaunard@ens-lyon.org> wrote:
On 30/03/2011 15:11, Domagoj Saric wrote:
ps. does NT2 provide a way to choose/use multiple instruction sets?
Not out of the box. What you could do is compile your code several times with different options and make each version into a separate dll, then select the right dll to load at runtime.
It would be useful if the types chose their instruction set by policy. template<typename Policy> void go(float *f) { typedef vec4<float, Policy> vec; ... } void (*go_ptr)(float*) = go<x87>; if(supports_sse) go_ptr = go<sse2>; It would let us handle our own multiple-instruction-sets-in-one-binary needs at whatever level we deem best. -- Cory Nelson http://int64.org