squash! DRAFT x86_64: build: Cater for M2-Planet.

This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-05-07 14:50:18 +02:00 committed by Janneke Nieuwenhuizen
parent c70f51919f
commit 0835105efa
2 changed files with 2 additions and 10 deletions

View File

@ -41,11 +41,7 @@
for that by multiplying with M2_PTR_SIZE when using (char) for that by multiplying with M2_PTR_SIZE when using (char)
pointers. */ pointers. */
#if __M2__ #if __M2__
#if __x86_64__ #define M2_PTR_SIZE sizeof (void*)
#define M2_PTR_SIZE 8
#else
#define M2_PTR_SIZE 4
#endif
#else #else
#define M2_PTR_SIZE 1 #define M2_PTR_SIZE 1
#endif #endif

View File

@ -57,11 +57,7 @@ struct scm
for that by multiplying with M2_CELL_SIZE when using cell for that by multiplying with M2_CELL_SIZE when using cell
pointers. */ pointers. */
#if __M2__ #if __M2__
#if __x86_64__ #define M2_CELL_SIZE sizeof (struct scm)
#define M2_CELL_SIZE 24
#else
#define M2_CELL_SIZE 12
#endif
#else #else
#define M2_CELL_SIZE 1 #define M2_CELL_SIZE 1
#endif #endif