monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] illegal instruction


From: Nathan Myers
Subject: Re: [Monotone-devel] illegal instruction
Date: Fri, 2 Apr 2004 10:13:09 -0800
User-agent: Mutt/1.3.28i

On Fri, Apr 02, 2004 at 11:06:38AM -0500, graydon hoare wrote:
> I'm looking into ways of making the activation of the SSE2 code "more 
> automatic". 

You really should be doing the test at runtime.  Generate the SSE2
code always (on x86 anyway), but only call into the variant that
uses it if you find that it is supported.  There's a neat trick in 
ELF ldso to make that happen automatically, but the codes are small 
enough (aren't they?) that you can afford to just link in all the 
variants (portable, SSE2, 3DNow!, Altivec) statically.  

Nathan Myers
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]