Blame sljit/sljitConfig.h

Packit 78a954
/*
Packit 78a954
 *    Stack-less Just-In-Time compiler
Packit 78a954
 *
Packit 78a954
 *    Copyright 2009-2012 Zoltan Herczeg (hzmester@freemail.hu). All rights reserved.
Packit 78a954
 *
Packit 78a954
 * Redistribution and use in source and binary forms, with or without modification, are
Packit 78a954
 * permitted provided that the following conditions are met:
Packit 78a954
 *
Packit 78a954
 *   1. Redistributions of source code must retain the above copyright notice, this list of
Packit 78a954
 *      conditions and the following disclaimer.
Packit 78a954
 *
Packit 78a954
 *   2. Redistributions in binary form must reproduce the above copyright notice, this list
Packit 78a954
 *      of conditions and the following disclaimer in the documentation and/or other materials
Packit 78a954
 *      provided with the distribution.
Packit 78a954
 *
Packit 78a954
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND CONTRIBUTORS ``AS IS'' AND ANY
Packit 78a954
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
Packit 78a954
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
Packit 78a954
 * SHALL THE COPYRIGHT HOLDER(S) OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
Packit 78a954
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
Packit 78a954
 * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
Packit 78a954
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
Packit 78a954
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
Packit 78a954
 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit 78a954
 */
Packit 78a954
Packit 78a954
#ifndef _SLJIT_CONFIG_H_
Packit 78a954
#define _SLJIT_CONFIG_H_
Packit 78a954
Packit 78a954
/* --------------------------------------------------------------------- */
Packit 78a954
/*  Custom defines                                                       */
Packit 78a954
/* --------------------------------------------------------------------- */
Packit 78a954
Packit 78a954
/* Put your custom defines here. This empty section will never change
Packit 78a954
   which helps maintaining patches (with diff / patch utilities). */
Packit 78a954
Packit 78a954
/* --------------------------------------------------------------------- */
Packit 78a954
/*  Architecture                                                         */
Packit 78a954
/* --------------------------------------------------------------------- */
Packit 78a954
Packit 78a954
/* Architecture selection. */
Packit 78a954
/* #define SLJIT_CONFIG_X86_32 1 */
Packit 78a954
/* #define SLJIT_CONFIG_X86_64 1 */
Packit 78a954
/* #define SLJIT_CONFIG_ARM_V5 1 */
Packit 78a954
/* #define SLJIT_CONFIG_ARM_V7 1 */
Packit 78a954
/* #define SLJIT_CONFIG_ARM_THUMB2 1 */
Packit 78a954
/* #define SLJIT_CONFIG_ARM_64 1 */
Packit 78a954
/* #define SLJIT_CONFIG_PPC_32 1 */
Packit 78a954
/* #define SLJIT_CONFIG_PPC_64 1 */
Packit 78a954
/* #define SLJIT_CONFIG_MIPS_32 1 */
Packit 78a954
/* #define SLJIT_CONFIG_MIPS_64 1 */
Packit 78a954
/* #define SLJIT_CONFIG_SPARC_32 1 */
Packit 78a954
/* #define SLJIT_CONFIG_TILEGX 1 */
Packit 78a954
Packit 78a954
/* #define SLJIT_CONFIG_AUTO 1 */
Packit 78a954
/* #define SLJIT_CONFIG_UNSUPPORTED 1 */
Packit 78a954
Packit 78a954
/* --------------------------------------------------------------------- */
Packit 78a954
/*  Utilities                                                            */
Packit 78a954
/* --------------------------------------------------------------------- */
Packit 78a954
Packit 78a954
/* Useful for thread-safe compiling of global functions. */
Packit 78a954
#ifndef SLJIT_UTIL_GLOBAL_LOCK
Packit 78a954
/* Enabled by default */
Packit 78a954
#define SLJIT_UTIL_GLOBAL_LOCK 1
Packit 78a954
#endif
Packit 78a954
Packit 78a954
/* Implements a stack like data structure (by using mmap / VirtualAlloc). */
Packit 78a954
#ifndef SLJIT_UTIL_STACK
Packit 78a954
/* Enabled by default */
Packit 78a954
#define SLJIT_UTIL_STACK 1
Packit 78a954
#endif
Packit 78a954
Packit 78a954
/* Single threaded application. Does not require any locks. */
Packit 78a954
#ifndef SLJIT_SINGLE_THREADED
Packit 78a954
/* Disabled by default. */
Packit 78a954
#define SLJIT_SINGLE_THREADED 0
Packit 78a954
#endif
Packit 78a954
Packit 78a954
/* --------------------------------------------------------------------- */
Packit 78a954
/*  Configuration                                                        */
Packit 78a954
/* --------------------------------------------------------------------- */
Packit 78a954
Packit 78a954
/* If SLJIT_STD_MACROS_DEFINED is not defined, the application should
Packit 78a954
   define SLJIT_MALLOC, SLJIT_FREE, SLJIT_MEMMOVE, and NULL. */
Packit 78a954
#ifndef SLJIT_STD_MACROS_DEFINED
Packit 78a954
/* Disabled by default. */
Packit 78a954
#define SLJIT_STD_MACROS_DEFINED 0
Packit 78a954
#endif
Packit 78a954
Packit 78a954
/* Executable code allocation:
Packit 78a954
   If SLJIT_EXECUTABLE_ALLOCATOR is not defined, the application should
Packit 78a954
   define both SLJIT_MALLOC_EXEC and SLJIT_FREE_EXEC. */
Packit 78a954
#ifndef SLJIT_EXECUTABLE_ALLOCATOR
Packit 78a954
/* Enabled by default. */
Packit 78a954
#define SLJIT_EXECUTABLE_ALLOCATOR 1
Packit 78a954
#endif
Packit 78a954
Packit 78a954
/* Force cdecl calling convention even if a better calling
Packit 78a954
   convention (e.g. fastcall) is supported by the C compiler.
Packit 78a954
   If this option is enabled, C functions without
Packit 78a954
   SLJIT_CALL can also be called from JIT code. */
Packit 78a954
#ifndef SLJIT_USE_CDECL_CALLING_CONVENTION
Packit 78a954
/* Disabled by default */
Packit 78a954
#define SLJIT_USE_CDECL_CALLING_CONVENTION 0
Packit 78a954
#endif
Packit 78a954
Packit 78a954
/* Return with error when an invalid argument is passed. */
Packit 78a954
#ifndef SLJIT_ARGUMENT_CHECKS
Packit 78a954
/* Disabled by default */
Packit 78a954
#define SLJIT_ARGUMENT_CHECKS 0
Packit 78a954
#endif
Packit 78a954
Packit 78a954
/* Debug checks (assertions, etc.). */
Packit 78a954
#ifndef SLJIT_DEBUG
Packit 78a954
/* Enabled by default */
Packit 78a954
#define SLJIT_DEBUG 1
Packit 78a954
#endif
Packit 78a954
Packit 78a954
/* Verbose operations. */
Packit 78a954
#ifndef SLJIT_VERBOSE
Packit 78a954
/* Enabled by default */
Packit 78a954
#define SLJIT_VERBOSE 1
Packit 78a954
#endif
Packit 78a954
Packit 78a954
/*
Packit 78a954
  SLJIT_IS_FPU_AVAILABLE
Packit 78a954
    The availability of the FPU can be controlled by SLJIT_IS_FPU_AVAILABLE.
Packit 78a954
      zero value - FPU is NOT present.
Packit 78a954
      nonzero value - FPU is present.
Packit 78a954
*/
Packit 78a954
Packit 78a954
/* For further configurations, see the beginning of sljitConfigInternal.h */
Packit 78a954
Packit 78a954
#endif