/*
 * 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 GENCGC_CARD_SHIFT 12 /* 0xC */
#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 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 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_Error 10 /* 0xA */
#define trap_Cerror 11 /* 0xB */
#define trap_Breakpoint 12 /* 0xC */
#define trap_FunEndBreakpoint 13 /* 0xD */
#define trap_SingleStepAround 14 /* 0xE */
#define trap_SingleStepBefore 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_FpConstant 4 /* 0x4 */
#define sc_Immediate 7 /* 0x7 */
#define sc_ControlStack 8 /* 0x8 */
#define sc_SignedStack 9 /* 0x9 */
#define sc_UnsignedStack 10 /* 0xA */
#define sc_CharacterStack 11 /* 0xB */
#define sc_SapStack 12 /* 0xC */
#define sc_SingleStack 13 /* 0xD */
#define sc_DoubleStack 14 /* 0xE */
#define sc_ComplexSingleStack 15 /* 0xF */
#define sc_ComplexDoubleStack 16 /* 0x10 */
#define sc_IgnoreMe 17 /* 0x11 */
#define sc_CharacterReg 18 /* 0x12 */
#define sc_SapReg 19 /* 0x13 */
#define sc_UnsignedReg 20 /* 0x14 */
#define sc_WordReg 21 /* 0x15 */
#define sc_ByteReg 22 /* 0x16 */
#define sc_SingleReg 23 /* 0x17 */
#define sc_DoubleReg 24 /* 0x18 */
#define sc_ComplexSingleReg 25 /* 0x19 */
#define sc_ComplexDoubleReg 26 /* 0x1A */
#define sc_CatchBlock 27 /* 0x1B */

#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 UNWIND_BLOCK_SIZE 3 /* 0x3 */
#define WEAK_POINTER_SIZE 3 /* 0x3 */
#define DOUBLE_FLOAT_SIZE 4 /* 0x4 */
#define FDEFN_SIZE 4 /* 0x4 */
#define CATCH_BLOCK_SIZE 5 /* 0x5 */
#define COMPLEX_DOUBLE_FLOAT_SIZE 6 /* 0x6 */
#define SYMBOL_SIZE 7 /* 0x7 */
#define LINKAGE_TABLE_ENTRY_SIZE 8 /* 0x8 */
#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 16777216LU /* 0x1000000 */
#define READ_ONLY_SPACE_END 17817600LU /* 0x10FE000 */
#define STATIC_SPACE_START 17825792LU /* 0x1100000 */
#define STATIC_SPACE_END 18870272LU /* 0x11FF000 */
#define LINKAGE_TABLE_SPACE_START 18874368LU /* 0x1200000 */
#define LINKAGE_TABLE_SPACE_END 19918848LU /* 0x12FF000 */
#define DYNAMIC_SPACE_START 150994944LU /* 0x9000000 */
#define DYNAMIC_SPACE_END 687865856LU /* 0x29000000 */
#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 NEW_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 DYNAMIC_CORE_SPACE_ID 1 /* 0x1 */
#define STATIC_CORE_SPACE_ID 2 /* 0x2 */
#define READ_ONLY_CORE_SPACE_ID 3 /* 0x3 */
#define MAX_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 UNKNOWN_ERROR 0
#define UNDEFINED_FUN_ERROR 1
#define INVALID_ARG_COUNT_ERROR 2
#define LOCAL_INVALID_ARG_COUNT_ERROR 3
#define BOGUS_ARG_TO_VALUES_LIST_ERROR 4
#define UNBOUND_SYMBOL_ERROR 5
#define INVALID_UNWIND_ERROR 6
#define UNSEEN_THROW_TAG_ERROR 7
#define DIVISION_BY_ZERO_ERROR 8
#define OBJECT_NOT_TYPE_ERROR 9
#define ODD_KEY_ARGS_ERROR 10
#define UNKNOWN_KEY_ARG_ERROR 11
#define INVALID_ARRAY_INDEX_ERROR 12
#define NIL_FUN_RETURNED_ERROR 13
#define NIL_ARRAY_ACCESSED_ERROR 14
#define LAYOUT_INVALID_ERROR 15
#define TLS_EXHAUSTED_ERROR 16
#define BACKEND_PAGE_BYTES 4096LU

#define FLOAT_TRAPS_BYTE_POSITION 0 /* 0x0 */
#define FLOAT_TRAPS_BYTE_MASK 0x3F /* 63 */
#define FLOAT_EXCEPTIONS_BYTE_POSITION 16 /* 0x10 */
#define FLOAT_EXCEPTIONS_BYTE_MASK 0x3F0000 /* 4128768 */
#define FLOAT_STICKY_BITS_POSITION 16 /* 0x10 */
#define FLOAT_STICKY_BITS_MASK 0x3F0000 /* 4128768 */
#define FLOAT_ROUNDING_MODE_POSITION 10 /* 0xA */
#define FLOAT_ROUNDING_MODE_MASK 0xC00 /* 3072 */
#endif
