cpu features testing 32 vs 64 bit
    Dan Malek 
    dan at embeddededge.com
       
    Fri Sep  9 07:48:58 EST 2005
    
    
  
On Sep 8, 2005, at 5:20 PM, Kumar Gala wrote:
>>>          if (!cpu_has_feature(CPU_FTR_COHERENT_ICACHE))
>>>                  __flush_icache_range(start, stop);
>>> }
If we #define CPU_FTR_xxx as a 0 or all 1's for processors that have
or don't have these features, will the compiler be smart enough to
recognize an always true or false condition and remove the
test (or code as appropriate)?
Thanks.
	-- Dan
    
    
More information about the Linuxppc-dev
mailing list