Compare commits

..

2 Commits

2 changed files with 9 additions and 1 deletions

View File

@@ -74,7 +74,7 @@ static int mcx_loadchunk(const u8 *restrict buf, const i32 *restrict table, int
/* Moves chunks `src_s` to `src_e` (inclusive) from `src`, back onto `dst`. */ /* Moves chunks `src_s` to `src_e` (inclusive) from `src`, back onto `dst`. */
static void mvchunks(u8 *dst, u8 *src, u32 *restrict table, int src_s, int src_e) { static void mvchunks(u8 *dst, u8 *src, u32 *restrict table, int src_s, int src_e) {
assert(src > dst); assert(src > dst);
usize len = src - dst; // acquire the amount of bytes that we shall move uintptr len = src - dst; // acquire the amount of bytes that we shall move
assert(!(len % SECTOR)); assert(!(len % SECTOR));
// count how many bytes we need to move, whilst updating location data // count how many bytes we need to move, whilst updating location data

View File

@@ -19,6 +19,14 @@ typedef __SIZE_TYPE__ usize;
typedef __INTPTR_TYPE__ intptr; typedef __INTPTR_TYPE__ intptr;
typedef __UINTPTR_TYPE__ uintptr; typedef __UINTPTR_TYPE__ uintptr;
#if __SIZEOF_SIZE_T__ == __SIZEOF_LONG_LONG__
typedef llong ssize;
#elif __SIZEOF_SIZE_T__ == __SIZEOF_LONG__
typedef long ssize;
#elif __SIZEOF_SIZE_T__ == __SIZEOF_INT__
typedef int ssize;
#endif
#if __SIZEOF_FLOAT__ == 4 #if __SIZEOF_FLOAT__ == 4
typedef float f32; typedef float f32;
#endif #endif