mirror of
https://github.com/thepigeongenerator/mcaselector-lite.git
synced 2025-12-18 22:05:44 +01:00
Compare commits
2 Commits
d4fabf437c
...
c3d2e912cb
| Author | SHA1 | Date | |
|---|---|---|---|
| c3d2e912cb | |||
| 8ca49aa4fa |
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user