Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

aarch64 sizeof



What is the size of long on aarch64 ?

I tried setting up the headers to be able to build kernels with SLJIT
but am getting an error that looks like there is a mismatch between
whatever type is being used for sljit_sw and a pointer.

--- sljitLir.o ---
In file included from ../../../../external/bsd/sljit/dist/sljit_src/sljitLir.c:29:0:
../../../../external/bsd/sljit/dist/sljit_src/sljitLir.c: In function 'ensure_buf':
../../../../external/bsd/sljit/dist/sljit_src/sljitLir.h:1108:39: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
 #define SLJIT_OFFSETOF(base, member) ((sljit_sw)(&((base*)0x10)->member) - 0x10)
                                       ^
../../../../external/bsd/sljit/dist/sljit_src/sljitLir.c:494:63: note: in expansion of macro 'SLJIT_OFFSETOF'
  if (compiler->buf->used_size + size <= (BUF_SIZE - (sljit_uw)SLJIT_OFFSETOF(struct sljit_memory_fragment, memory))) {
                                                               ^~~~~~~~~~~~~~
../../../../external/bsd/sljit/dist/sljit_src/sljitLir.c: In function 'ensure_abuf':
../../../../external/bsd/sljit/dist/sljit_src/sljitLir.h:1108:39: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
 #define SLJIT_OFFSETOF(base, member) ((sljit_sw)(&((base*)0x10)->member) - 0x10)


Home | Main Index | Thread Index | Old Index