/*
 * This is a machine-generated file. Please do not edit it by hand.
 * (As of sbcl-0.8.14, it came from WRITE-CONFIG-H in genesis.lisp.)
 *
 * This file contains low-level information about the
 * internals of a particular version and configuration
 * of SBCL. It is used by the C compiler to create a runtime
 * support environment, an executable program in the host
 * operating system's native format, which can then be used to
 * load and run 'core' files, which are basically programs
 * in SBCL's own format.
 */
#ifndef SBCL_GENESIS_CONSTANTS
#define SBCL_GENESIS_CONSTANTS
#define N_FIXNUM_TAG_BITS 2 /* 0x2 */
#define FIXNUM_TAG_MASK 3 /* 0x3 */
#define N_LOWTAG_BITS 3 /* 0x3 */
#define N_WORD_BYTES 4 /* 0x4 */
#define LOWTAG_MASK 7 /* 0x7 */
#define N_WIDETAG_BITS 8 /* 0x8 */
#define N_WORD_BITS 32 /* 0x20 */
#define WIDETAG_MASK 255 /* 0xFF */
#define SHORT_HEADER_MAX_WORDS 32767 /* 0x7FFF */

#define EVEN_FIXNUM_LOWTAG 0 /* 0x0 */
#define INSTANCE_POINTER_LOWTAG 1 /* 0x1 */
#define OTHER_IMMEDIATE_0_LOWTAG 2 /* 0x2 */
#define LIST_POINTER_LOWTAG 3 /* 0x3 */
#define ODD_FIXNUM_LOWTAG 4 /* 0x4 */
#define FUN_POINTER_LOWTAG 5 /* 0x5 */
#define OTHER_IMMEDIATE_1_LOWTAG 6 /* 0x6 */
#define OTHER_POINTER_LOWTAG 7 /* 0x7 */

#define WORD_SHIFT 2 /* 0x2 */
#define BIGNUM_WIDETAG 10 /* 0xA */
#define RATIO_WIDETAG 14 /* 0xE */
#define SINGLE_FLOAT_WIDETAG 18 /* 0x12 */
#define DOUBLE_FLOAT_WIDETAG 22 /* 0x16 */
#define COMPLEX_WIDETAG 26 /* 0x1A */
#define COMPLEX_SINGLE_FLOAT_WIDETAG 30 /* 0x1E */
#define FLOAT_SIGN_SHIFT 31 /* 0x1F */
#define COMPLEX_DOUBLE_FLOAT_WIDETAG 34 /* 0x22 */
#define CODE_HEADER_WIDETAG 38 /* 0x26 */
#define SIMPLE_FUN_HEADER_WIDETAG 42 /* 0x2A */
#define SIMPLE_FUN_WIDETAG 42 /* 0x2A */
#define CLOSURE_HEADER_WIDETAG 46 /* 0x2E */
#define CLOSURE_WIDETAG 46 /* 0x2E */
#define FUNCALLABLE_INSTANCE_WIDETAG 50 /* 0x32 */
#define RETURN_PC_WIDETAG 54 /* 0x36 */
#define VALUE_CELL_WIDETAG 58 /* 0x3A */
#define SYMBOL_WIDETAG 62 /* 0x3E */
#define CHARACTER_WIDETAG 66 /* 0x42 */
#define SAP_WIDETAG 70 /* 0x46 */
#define UNBOUND_MARKER_WIDETAG 74 /* 0x4A */
#define WEAK_POINTER_WIDETAG 78 /* 0x4E */
#define INSTANCE_WIDETAG 82 /* 0x52 */
#define FDEFN_WIDETAG 86 /* 0x56 */
#define NO_TLS_VALUE_MARKER_WIDETAG 90 /* 0x5A */
#define FILLER_WIDETAG 98 /* 0x62 */
#define SIMPLE_ARRAY_WIDETAG 130 /* 0x82 */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_2_WIDETAG 134 /* 0x86 */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_4_WIDETAG 138 /* 0x8A */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_7_WIDETAG 142 /* 0x8E */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_8_WIDETAG 146 /* 0x92 */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_15_WIDETAG 150 /* 0x96 */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_16_WIDETAG 154 /* 0x9A */
#define SIMPLE_ARRAY_UNSIGNED_FIXNUM_WIDETAG 158 /* 0x9E */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_31_WIDETAG 162 /* 0xA2 */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_32_WIDETAG 166 /* 0xA6 */
#define SIMPLE_ARRAY_SIGNED_BYTE_8_WIDETAG 170 /* 0xAA */
#define SIMPLE_ARRAY_SIGNED_BYTE_16_WIDETAG 174 /* 0xAE */
#define SIMPLE_ARRAY_FIXNUM_WIDETAG 178 /* 0xB2 */
#define SIMPLE_ARRAY_SIGNED_BYTE_32_WIDETAG 182 /* 0xB6 */
#define SIMPLE_ARRAY_SINGLE_FLOAT_WIDETAG 186 /* 0xBA */
#define SIMPLE_ARRAY_DOUBLE_FLOAT_WIDETAG 190 /* 0xBE */
#define SIMPLE_ARRAY_COMPLEX_SINGLE_FLOAT_WIDETAG 194 /* 0xC2 */
#define SIMPLE_ARRAY_COMPLEX_DOUBLE_FLOAT_WIDETAG 198 /* 0xC6 */
#define SIMPLE_BIT_VECTOR_WIDETAG 202 /* 0xCA */
#define SIMPLE_VECTOR_WIDETAG 206 /* 0xCE */
#define SIMPLE_ARRAY_NIL_WIDETAG 210 /* 0xD2 */
#define SIMPLE_BASE_STRING_WIDETAG 214 /* 0xD6 */
#define SIMPLE_CHARACTER_STRING_WIDETAG 218 /* 0xDA */
#define COMPLEX_CHARACTER_STRING_WIDETAG 222 /* 0xDE */
#define COMPLEX_BASE_STRING_WIDETAG 226 /* 0xE2 */
#define COMPLEX_VECTOR_NIL_WIDETAG 230 /* 0xE6 */
#define COMPLEX_BIT_VECTOR_WIDETAG 234 /* 0xEA */
#define COMPLEX_VECTOR_WIDETAG 238 /* 0xEE */
#define COMPLEX_ARRAY_WIDETAG 242 /* 0xF2 */

#define flag_DeflatedCoreSpaceId 8 /* 0x8 */

#define trap_Halt 8 /* 0x8 */
#define trap_PendingInterrupt 9 /* 0x9 */
#define trap_Cerror 10 /* 0xA */
#define trap_Breakpoint 11 /* 0xB */
#define trap_FunEndBreakpoint 12 /* 0xC */
#define trap_SingleStepAround 13 /* 0xD */
#define trap_SingleStepBefore 14 /* 0xE */
#define trap_Error 15 /* 0xF */

#define subtype_VectorNormal 0 /* 0x0 */
#define subtype_VectorValidHashing 2 /* 0x2 */
#define VECTOR_SHAREABLE 256 /* 0x100 */
#define VECTOR_SHAREABLE_NONSTD 512 /* 0x200 */

#define sc_DescriptorReg 0 /* 0x0 */
#define sc_AnyReg 1 /* 0x1 */
#define sc_SignedReg 2 /* 0x2 */
#define sc_Constant 3 /* 0x3 */
#define sc_Null 4 /* 0x4 */
#define sc_Immediate 5 /* 0x5 */
#define sc_ControlStack 6 /* 0x6 */
#define sc_SignedStack 7 /* 0x7 */
#define sc_UnsignedStack 8 /* 0x8 */
#define sc_CharacterStack 9 /* 0x9 */
#define sc_SapStack 10 /* 0xA */
#define sc_SingleStack 11 /* 0xB */
#define sc_DoubleStack 12 /* 0xC */
#define sc_ComplexSingleStack 13 /* 0xD */
#define sc_ComplexDoubleStack 14 /* 0xE */
#define sc_CharacterReg 15 /* 0xF */
#define sc_SapReg 16 /* 0x10 */
#define sc_UnsignedReg 17 /* 0x11 */
#define sc_NonDescriptorReg 18 /* 0x12 */
#define sc_InteriorReg 19 /* 0x13 */
#define sc_SingleReg 20 /* 0x14 */
#define sc_DoubleReg 21 /* 0x15 */
#define sc_ComplexSingleReg 22 /* 0x16 */
#define sc_ComplexDoubleReg 23 /* 0x17 */
#define sc_CatchBlock 24 /* 0x18 */

#define BINDING_SIZE 2 /* 0x2 */
#define CONS_SIZE 2 /* 0x2 */
#define SAP_SIZE 2 /* 0x2 */
#define SINGLE_FLOAT_SIZE 2 /* 0x2 */
#define VALUE_CELL_SIZE 2 /* 0x2 */
#define COMPLEX_SINGLE_FLOAT_SIZE 3 /* 0x3 */
#define COMPLEX_SIZE 3 /* 0x3 */
#define RATIO_SIZE 3 /* 0x3 */
#define WEAK_POINTER_SIZE 3 /* 0x3 */
#define DOUBLE_FLOAT_SIZE 4 /* 0x4 */
#define FDEFN_SIZE 4 /* 0x4 */
#define UNWIND_BLOCK_SIZE 4 /* 0x4 */
#define CATCH_BLOCK_SIZE 6 /* 0x6 */
#define COMPLEX_DOUBLE_FLOAT_SIZE 6 /* 0x6 */
#define SYMBOL_SIZE 6 /* 0x6 */
#define LINKAGE_TABLE_ENTRY_SIZE 16 /* 0x10 */
#define MAX_INTERRUPTS 1024 /* 0x400 */
#define TLS_SIZE 4096 /* 0x1000 */
#define LARGE_OBJECT_SIZE 16384 /* 0x4000 */

#define GENCGC_ALLOC_GRANULARITY 0LU /* 0x0 */
#define INSTANCE_DATA_START 1LU /* 0x1 */
#define GENCGC_CARD_BYTES 4096LU /* 0x1000 */
#define GENCGC_RELEASE_GRANULARITY 4096LU /* 0x1000 */
#define READ_ONLY_SPACE_START 67108864LU /* 0x4000000 */
#define READ_ONLY_SPACE_END 68157440LU /* 0x4100000 */
#define STATIC_SPACE_START 68157440LU /* 0x4100000 */
#define LINKAGE_TABLE_SPACE_START 69206016LU /* 0x4200000 */
#define STATIC_SPACE_END 69206016LU /* 0x4200000 */
#define LINKAGE_TABLE_SPACE_END 70254592LU /* 0x4300000 */
#define MAX_DYNAMIC_SPACE_END 4294967295LU /* 0xFFFFFFFF */

#define END_CORE_ENTRY_TYPE_CODE 3840 /* 0xF00 */
#define BUILD_ID_CORE_ENTRY_TYPE_CODE 3860 /* 0xF14 */
#define DIRECTORY_CORE_ENTRY_TYPE_CODE 3861 /* 0xF15 */
#define INITIAL_FUN_CORE_ENTRY_TYPE_CODE 3863 /* 0xF17 */
#define PAGE_TABLE_CORE_ENTRY_TYPE_CODE 3880 /* 0xF28 */
#define LINKAGE_TABLE_CORE_ENTRY_TYPE_CODE 3881 /* 0xF29 */

#define DYNAMIC_CORE_SPACE_ID 1 /* 0x1 */
#define STATIC_CORE_SPACE_ID 2 /* 0x2 */
#define MAX_CORE_SPACE_ID 3 /* 0x3 */
#define READ_ONLY_CORE_SPACE_ID 3 /* 0x3 */
#define IMMOBILE_FIXEDOBJ_CORE_SPACE_ID 4 /* 0x4 */
#define IMMOBILE_VARYOBJ_CORE_SPACE_ID 5 /* 0x5 */
#define DEFLATED_CORE_SPACE_ID_FLAG 8 /* 0x8 */
#define MAGIC_HASH_VECTOR_VALUE 2147483648LU /* 0x80000000 */

#define HIGHEST_NORMAL_GENERATION 5 /* 0x5 */
#define PSEUDO_STATIC_GENERATION 6 /* 0x6 */

#define BACKEND_PAGE_BYTES 4096
#define GENCGC_CARD_SHIFT 12
#ifndef DEFAULT_DYNAMIC_SPACE_SIZE
#define DEFAULT_DYNAMIC_SPACE_SIZE 536870912 /* 0x20000000 */
#endif

#define UNKNOWN_ERROR 0
#define UNDEFINED_FUN_ERROR 1
#define UNDEFINED_ALIEN_FUN_ERROR 2
#define INVALID_ARG_COUNT_ERROR 3
#define LOCAL_INVALID_ARG_COUNT_ERROR 4
#define BOGUS_ARG_TO_VALUES_LIST_ERROR 5
#define UNBOUND_SYMBOL_ERROR 6
#define INVALID_UNWIND_ERROR 7
#define UNSEEN_THROW_TAG_ERROR 8
#define DIVISION_BY_ZERO_ERROR 9
#define OBJECT_NOT_TYPE_ERROR 10
#define ODD_KEY_ARGS_ERROR 11
#define UNKNOWN_KEY_ARG_ERROR 12
#define INVALID_ARRAY_INDEX_ERROR 13
#define NIL_FUN_RETURNED_ERROR 14
#define NIL_ARRAY_ACCESSED_ERROR 15
#define LAYOUT_INVALID_ERROR 16
#define TLS_EXHAUSTED_ERROR 17
#define FAILED_AVER_ERROR 18

#define FLOAT_TRAPS_BYTE_POSITION 8 /* 0x8 */
#define FLOAT_TRAPS_BYTE_MASK 0xFF00 /* 65280 */
#define FLOAT_EXCEPTIONS_BYTE_POSITION 0 /* 0x0 */
#define FLOAT_EXCEPTIONS_BYTE_MASK 0xFF /* 255 */
#define FLOAT_STICKY_BITS_POSITION 0 /* 0x0 */
#define FLOAT_STICKY_BITS_MASK 0xFF /* 255 */
#define FLOAT_ROUNDING_MODE_POSITION 22 /* 0x16 */
#define FLOAT_ROUNDING_MODE_MASK 0xC00000 /* 12582912 */
#endif
