~ubuntu-branches/ubuntu/trusty/pcre3/trusty

« back to all changes in this revision

Viewing changes to sljit/sljitConfigInternal.h

  • Committer: Package Import Robot
  • Author(s): Mark Baker
  • Date: 2012-09-13 19:58:45 UTC
  • mfrom: (23.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20120913195845-wd12z63sm0b07n59
Tags: 1:8.31-1
* New upstream release
* Applied patch from upstream bugzilla #1287 to fix bug where wrong
  value is in re_nsub in some cases (Closes: #686495)

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
 
195
195
#ifndef SLJIT_CACHE_FLUSH
196
196
 
197
 
#if (defined SLJIT_CONFIG_PPC_32 && SLJIT_CONFIG_PPC_32) || (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)
 
197
#if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)
 
198
 
 
199
/* Not required to implement on archs with unified caches. */
 
200
#define SLJIT_CACHE_FLUSH(from, to)
 
201
 
 
202
#elif defined __APPLE__
 
203
 
 
204
/* Supported by all macs since Mac OS 10.5.
 
205
   However, it does not work on non-jailbroken iOS devices,
 
206
   although the compilation is successful. */
 
207
 
 
208
#define SLJIT_CACHE_FLUSH(from, to) \
 
209
        sys_icache_invalidate((char*)(from), (char*)(to) - (char*)(from))
 
210
 
 
211
#elif (defined SLJIT_CONFIG_PPC_32 && SLJIT_CONFIG_PPC_32) || (defined SLJIT_CONFIG_PPC_64 && SLJIT_CONFIG_PPC_64)
198
212
 
199
213
/* The __clear_cache() implementation of GCC is a dummy function on PowerPC. */
200
214
#define SLJIT_CACHE_FLUSH(from, to) \
201
215
        ppc_cache_flush((from), (to))
202
216
 
203
 
#elif (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)
204
 
 
205
 
/* Not required to implement on archs with unified caches. */
206
 
#define SLJIT_CACHE_FLUSH(from, to)
207
 
 
208
217
#else
209
218
 
210
219
/* Calls __ARM_NR_cacheflush on ARM-Linux. */
335
344
#ifndef SLJIT_SSE2
336
345
 
337
346
#if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64)
338
 
/* Turn on SSE2 support on x86 (operating on doubles).
339
 
   (Better performance than legacy fpu instructions). */
 
347
/* Turn on SSE2 support on x86. */
340
348
#define SLJIT_SSE2 1
341
349
 
342
350
#if (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32)
343
351
/* Auto detect SSE2 support using CPUID.
344
352
   On 64 bit x86 cpus, sse2 must be present. */
345
 
#define SLJIT_SSE2_AUTO 1
 
353
#define SLJIT_DETECT_SSE2 1
346
354
#endif
347
355
 
348
356
#endif /* (defined SLJIT_CONFIG_X86_32 && SLJIT_CONFIG_X86_32) || (defined SLJIT_CONFIG_X86_64 && SLJIT_CONFIG_X86_64) */