/*
 * 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 DSD_RAW_TYPE_MASK 7 /* 0x7 */
#define LOWTAG_MASK 7 /* 0x7 */
#define ARRAY_RANK_POSITION 8 /* 0x8 */
#define N_WIDETAG_BITS 8 /* 0x8 */
#define ARRAY_FLAGS_POSITION 16 /* 0x10 */
#define N_WORD_BITS 32 /* 0x20 */
#define NIL_VALUE_OFFSET 51 /* 0x33 */
#define WIDETAG_MASK 255 /* 0xFF */
#define INSTANCE_LENGTH_MASK 16383 /* 0x3FFF */
#define SHORT_HEADER_MAX_WORDS 32767 /* 0x7FFF */
#define MAXIMUM_BIGNUM_LENGTH 8388607 /* 0x7FFFFF */

#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 DSD_INDEX_SHIFT 7 /* 0x7 */
#define CODE_HEADER_SIZE_SHIFT 8 /* 0x8 */
#define BIGNUM_WIDETAG 10 /* 0xA */
#define INSTANCE_LENGTH_SHIFT 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 SYMBOL_WIDETAG 38 /* 0x26 */
#define SAP_WIDETAG 42 /* 0x2A */
#define CODE_HEADER_WIDETAG 46 /* 0x2E */
#define INSTANCE_WIDETAG 50 /* 0x32 */
#define FUNCALLABLE_INSTANCE_WIDETAG 54 /* 0x36 */
#define SIMPLE_FUN_WIDETAG 58 /* 0x3A */
#define CLOSURE_WIDETAG 62 /* 0x3E */
#define RETURN_PC_WIDETAG 66 /* 0x42 */
#define VALUE_CELL_WIDETAG 70 /* 0x46 */
#define CHARACTER_WIDETAG 74 /* 0x4A */
#define UNBOUND_MARKER_WIDETAG 78 /* 0x4E */
#define WEAK_POINTER_WIDETAG 82 /* 0x52 */
#define FDEFN_WIDETAG 86 /* 0x56 */
#define FILLER_WIDETAG 102 /* 0x66 */
#define SIMPLE_ARRAY_WIDETAG 130 /* 0x82 */
#define SIMPLE_ARRAY_NIL_WIDETAG 134 /* 0x86 */
#define SIMPLE_VECTOR_WIDETAG 138 /* 0x8A */
#define SIMPLE_BIT_VECTOR_WIDETAG 142 /* 0x8E */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_2_WIDETAG 146 /* 0x92 */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_4_WIDETAG 150 /* 0x96 */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_7_WIDETAG 154 /* 0x9A */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_8_WIDETAG 158 /* 0x9E */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_15_WIDETAG 162 /* 0xA2 */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_16_WIDETAG 166 /* 0xA6 */
#define SIMPLE_ARRAY_UNSIGNED_FIXNUM_WIDETAG 170 /* 0xAA */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_31_WIDETAG 174 /* 0xAE */
#define SIMPLE_ARRAY_UNSIGNED_BYTE_32_WIDETAG 178 /* 0xB2 */
#define SIMPLE_ARRAY_SIGNED_BYTE_8_WIDETAG 182 /* 0xB6 */
#define SIMPLE_ARRAY_SIGNED_BYTE_16_WIDETAG 186 /* 0xBA */
#define SIMPLE_ARRAY_FIXNUM_WIDETAG 190 /* 0xBE */
#define SIMPLE_ARRAY_SIGNED_BYTE_32_WIDETAG 194 /* 0xC2 */
#define SIMPLE_ARRAY_SINGLE_FLOAT_WIDETAG 198 /* 0xC6 */
#define SIMPLE_ARRAY_DOUBLE_FLOAT_WIDETAG 202 /* 0xCA */
#define SIMPLE_ARRAY_COMPLEX_SINGLE_FLOAT_WIDETAG 206 /* 0xCE */
#define SIMPLE_ARRAY_COMPLEX_DOUBLE_FLOAT_WIDETAG 210 /* 0xD2 */
#define SIMPLE_BASE_STRING_WIDETAG 214 /* 0xD6 */
#define SIMPLE_CHARACTER_STRING_WIDETAG 218 /* 0xDA */
#define COMPLEX_BASE_STRING_WIDETAG 222 /* 0xDE */
#define COMPLEX_CHARACTER_STRING_WIDETAG 226 /* 0xE2 */
#define COMPLEX_BIT_VECTOR_WIDETAG 230 /* 0xE6 */
#define COMPLEX_VECTOR_WIDETAG 234 /* 0xEA */
#define COMPLEX_ARRAY_WIDETAG 238 /* 0xEE */

#define PACKAGE_ID_NONE 0 /* 0x0 */
#define PACKAGE_ID_LISP 1 /* 0x1 */
#define PACKAGE_ID_KEYWORD 2 /* 0x2 */
#define PACKAGE_ID_USER 3 /* 0x3 */
#define PACKAGE_ID_KERNEL 4 /* 0x4 */
#define SYMBOL_NAME_BITS 16 /* 0x10 */

#define flag_VectorWeak 1 /* 0x1 */
#define flag_VectorAddrHashing 2 /* 0x2 */
#define flag_VectorHashing 4 /* 0x4 */
#define flag_DeflatedCoreSpaceId 8 /* 0x8 */
#define flag_StableHashRequired 8 /* 0x8 */
#define flag_HashSlotPresent 9 /* 0x9 */

#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 VECTOR_SHAREABLE_NONSTD 16 /* 0x10 */
#define VECTOR_SHAREABLE 32 /* 0x20 */

#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 7 /* 0x7 */
#define ALIEN_LINKAGE_TABLE_ENTRY_SIZE 16 /* 0x10 */
#define MAX_INTERRUPTS 1024 /* 0x400 */
#define LARGE_OBJECT_SIZE 16384 /* 0x4000 */
#define ALIEN_LINKAGE_TABLE_SPACE_SIZE 1048576 /* 0x100000 */

#define GENCGC_ALLOC_GRANULARITY 0LU /* 0x0 */
#define MIXED_REGION_OFFSET 0LU /* 0x0 */
#define INSTANCE_DATA_START 1LU /* 0x1 */
#define CONS_REGION_OFFSET 12LU /* 0xC */
#define BOXED_REGION_OFFSET 24LU /* 0x18 */
#define NIL_SYMBOL_SLOTS_OFFSET 44LU /* 0x2C */
#define STATIC_SPACE_OBJECTS_OFFSET 72LU /* 0x48 */
#define NIL_SYMBOL_SLOTS_END_OFFSET 76LU /* 0x4C */
#define STRICTLY_BOXED_FLAG 512LU /* 0x200 */
#define GENCGC_CARD_BYTES 4096LU /* 0x1000 */
#define GENCGC_PAGE_BYTES 4096LU /* 0x1000 */
#define GENCGC_RELEASE_GRANULARITY 4096LU /* 0x1000 */
#define ALIEN_LINKAGE_TABLE_SPACE_START 67108864LU /* 0x4000000 */
#define STATIC_SPACE_START 68157440LU /* 0x4100000 */
#define STATIC_SPACE_END 69206016LU /* 0x4200000 */
#define VECTOR_ALLOC_MIXED_REGION_BIT 268435456LU /* 0x10000000 */
#define MAGIC_HASH_VECTOR_VALUE 4294967295LU /* 0xFFFFFFFF */
#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 ALIEN_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 STATIC_CODE_CORE_SPACE_ID 4 /* 0x4 */
#define IMMOBILE_TEXT_CORE_SPACE_ID 5 /* 0x5 */
#define DEFLATED_CORE_SPACE_ID_FLAG 8 /* 0x8 */
#define ALIEN_LINKAGE_TABLE_CORE_SPACE_ID 101 /* 0x65 */
#define THREAD_STRUCT_CORE_SPACE_ID 102 /* 0x66 */

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

#define BACKEND_PAGE_BYTES 4096
#define MAX_CONSES_PER_PAGE 511
#define CARDS_PER_PAGE 1
#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 UNINITIALIZED_MEMORY_ERROR 3
#define INVALID_ARG_COUNT_ERROR 4
#define LOCAL_INVALID_ARG_COUNT_ERROR 5
#define BOGUS_ARG_TO_VALUES_LIST_ERROR 6
#define UNBOUND_SYMBOL_ERROR 7
#define INVALID_UNWIND_ERROR 8
#define UNSEEN_THROW_TAG_ERROR 9
#define DIVISION_BY_ZERO_ERROR 10
#define OBJECT_NOT_TYPE_ERROR 11
#define ECASE_FAILURE_ERROR 12
#define ETYPECASE_FAILURE_ERROR 13
#define ODD_KEY_ARGS_ERROR 14
#define UNKNOWN_KEY_ARG_ERROR 15
#define INVALID_ARRAY_INDEX_ERROR 16
#define INVALID_VECTOR_INDEX_ERROR 17
#define UNINITIALIZED_ELEMENT_ERROR 18
#define NIL_FUN_RETURNED_ERROR 19
#define NIL_ARRAY_ACCESSED_ERROR 20
#define LAYOUT_INVALID_ERROR 21
#define TLS_EXHAUSTED_ERROR 22
#define STACK_ALLOCATED_OBJECT_OVERFLOWS_STACK_ERROR 23
#define UNREACHABLE_ERROR 24
#define FAILED_AVER_ERROR 25
#define MUL_OVERFLOW_ERROR 26
#define ADD_SUB_OVERFLOW_ERROR 27
#define SIGNED_UNSIGNED_ADD_OVERFLOW_ERROR 28
#define ADD_OVERFLOW2_ERROR 29
#define SUB_OVERFLOW2_ERROR 30
#define MUL_OVERFLOW2_ERROR 31
#define ASH_OVERFLOW2_ERROR 32
#define NEGATE_OVERFLOW_ERROR 33

#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
