/[pcre]/code/trunk/sljit/sljitConfigInternal.h
ViewVC logotype

Diff of /code/trunk/sljit/sljitConfigInternal.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 741 by zherczeg, Mon Oct 31 06:10:14 2011 UTC revision 742 by zherczeg, Sun Nov 6 08:05:33 2011 UTC
# Line 178  Line 178 
178    
179  #ifndef SLJIT_CACHE_FLUSH  #ifndef SLJIT_CACHE_FLUSH
180    
181  #if !(defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) && !(defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)  #if (defined SLJIT_CONFIG_PPC_32 && SLJIT_CONFIG_PPC_32) || (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)
182          /* Just call __ARM_NR_cacheflush on Linux. */  
183    /* The __clear_cache() implementation of GCC is a dummy function on PowerPC. */
184  #define SLJIT_CACHE_FLUSH(from, to) \  #define SLJIT_CACHE_FLUSH(from, to) \
185          __clear_cache((char*)(from), (char*)(to))          ppc_cache_flush((from), (to))
186  #else  
187          /* Not required to implement on archs with unified caches. */  #elif (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)
188    
189    /* Not required to implement on archs with unified caches. */
190  #define SLJIT_CACHE_FLUSH(from, to)  #define SLJIT_CACHE_FLUSH(from, to)
191    
192    #else
193    
194    /* Calls __ARM_NR_cacheflush on ARM-Linux. */
195    #define SLJIT_CACHE_FLUSH(from, to) \
196            __clear_cache((char*)(from), (char*)(to))
197    
198  #endif  #endif
199    
200  #endif /* !SLJIT_CACHE_FLUSH */  #endif /* !SLJIT_CACHE_FLUSH */

Legend:
Removed from v.741  
changed lines
  Added in v.742

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12