/[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 1460 by zherczeg, Wed Mar 5 14:44:22 2014 UTC revision 1483 by zherczeg, Tue Jun 17 15:48:37 2014 UTC
# Line 34  Line 34 
34     SLJIT_32BIT_ARCHITECTURE : 32 bit architecture     SLJIT_32BIT_ARCHITECTURE : 32 bit architecture
35     SLJIT_64BIT_ARCHITECTURE : 64 bit architecture     SLJIT_64BIT_ARCHITECTURE : 64 bit architecture
36     SLJIT_WORD_SHIFT : the shift required to apply when accessing a sljit_sw/sljit_uw array by index     SLJIT_WORD_SHIFT : the shift required to apply when accessing a sljit_sw/sljit_uw array by index
37     SLJIT_DOUBLE_SHIFT : the shift required to apply when accessing a double array by index     SLJIT_DOUBLE_SHIFT : the shift required to apply when accessing a double precision floating point array by index
38       SLJIT_SINGLE_SHIFT : the shift required to apply when accessing a single precision floating point array by index
39     SLJIT_LITTLE_ENDIAN : little endian architecture     SLJIT_LITTLE_ENDIAN : little endian architecture
40     SLJIT_BIG_ENDIAN : big endian architecture     SLJIT_BIG_ENDIAN : big endian architecture
41     SLJIT_UNALIGNED : allows unaligned memory accesses for non-fpu operations (only!)     SLJIT_UNALIGNED : allows unaligned memory accesses for non-fpu operations (only!)
# Line 142  Line 143 
143  #undef SLJIT_EXECUTABLE_ALLOCATOR  #undef SLJIT_EXECUTABLE_ALLOCATOR
144  #endif  #endif
145    
146    #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)
147    #define SLJIT_CONFIG_X86 1
148    #elif (defined SLJIT_CONFIG_ARM_V5 && SLJIT_CONFIG_ARM_V5) || (defined SLJIT_CONFIG_ARM_V7 && SLJIT_CONFIG_ARM_V7) \
149            || (defined SLJIT_CONFIG_ARM_THUMB2 && SLJIT_CONFIG_ARM_THUMB2) || (defined SLJIT_CONFIG_ARM_64 && SLJIT_CONFIG_ARM_64)
150    #define SLJIT_CONFIG_ARM 1
151    #elif (defined SLJIT_CONFIG_PPC_32 && SLJIT_CONFIG_PPC_32) || (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)
152    #define SLJIT_CONFIG_PPC 1
153    #elif (defined SLJIT_CONFIG_MIPS_32 && SLJIT_CONFIG_MIPS_32) || (defined SLJIT_CONFIG_MIPS_64 && SLJIT_CONFIG_MIPS_64)
154    #define SLJIT_CONFIG_MIPS 1
155    #elif (defined SLJIT_CONFIG_SPARC_32 && SLJIT_CONFIG_SPARC_32) || (defined SLJIT_CONFIG_SPARC_64 && SLJIT_CONFIG_SPARC_64)
156    #define SLJIT_CONFIG_SPARC 1
157    #endif
158    
159  #if !(defined SLJIT_STD_MACROS_DEFINED && SLJIT_STD_MACROS_DEFINED)  #if !(defined SLJIT_STD_MACROS_DEFINED && SLJIT_STD_MACROS_DEFINED)
160    
161  /* These libraries are needed for the macros below. */  /* These libraries are needed for the macros below. */
# Line 219  Line 233 
233    
234  #ifndef SLJIT_CACHE_FLUSH  #ifndef SLJIT_CACHE_FLUSH
235    
236  #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)  #if (defined SLJIT_CONFIG_X86 && SLJIT_CONFIG_X86)
237    
238  /* Not required to implement on archs with unified caches. */  /* Not required to implement on archs with unified caches. */
239  #define SLJIT_CACHE_FLUSH(from, to)  #define SLJIT_CACHE_FLUSH(from, to)
# Line 240  Line 254 
254  #define SLJIT_CACHE_FLUSH(from, to) \  #define SLJIT_CACHE_FLUSH(from, to) \
255      cacheflush((long)(from), (long)(to), 0)      cacheflush((long)(from), (long)(to), 0)
256    
257  #elif (defined SLJIT_CONFIG_PPC_32 && SLJIT_CONFIG_PPC_32) || (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)  #elif (defined SLJIT_CONFIG_PPC && SLJIT_CONFIG_PPC)
258    
259  /* The __clear_cache() implementation of GCC is a dummy function on PowerPC. */  /* The __clear_cache() implementation of GCC is a dummy function on PowerPC. */
260  #define SLJIT_CACHE_FLUSH(from, to) \  #define SLJIT_CACHE_FLUSH(from, to) \
# Line 314  typedef double sljit_d; Line 328  typedef double sljit_d;
328    
329  /* Shift for double precision sized data. */  /* Shift for double precision sized data. */
330  #define SLJIT_DOUBLE_SHIFT 3  #define SLJIT_DOUBLE_SHIFT 3
331    #define SLJIT_SINGLE_SHIFT 2
332    
333  #ifndef SLJIT_W  #ifndef SLJIT_W
334    
# Line 418  typedef double sljit_d; Line 433  typedef double sljit_d;
433  #endif  #endif
434  #endif /* SLJIT_RETURN_ADDRESS_OFFSET */  #endif /* SLJIT_RETURN_ADDRESS_OFFSET */
435    
 #ifndef SLJIT_SSE2  
   
 #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)  
 /* Turn on SSE2 support on x86. */  
 #define SLJIT_SSE2 1  
   
436  #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)  #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)
437  /* Auto detect SSE2 support using CPUID.  /* Auto detect SSE2 support using CPUID.
438     On 64 bit x86 cpus, sse2 must be present. */     On 64 bit x86 cpus, sse2 must be present. */
439  #define SLJIT_DETECT_SSE2 1  #define SLJIT_DETECT_SSE2 1
440  #endif  #endif
441    
 #endif /* (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64) */  
   
 #endif /* !SLJIT_SSE2 */  
   
442  #ifndef SLJIT_UNALIGNED  #ifndef SLJIT_UNALIGNED
443    
444  #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) \  #if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) \

Legend:
Removed from v.1460  
changed lines
  Added in v.1483

  ViewVC Help
Powered by ViewVC 1.1.5