Unified · Split
| @@ -13,30 +13,20 @@ · 12 unmodified lines | |||
| 13 | #endif | 13 | #endif |
| 14 | #include <assert.h> | 14 | #include <assert.h> |
| 15 | #include <ctype.h> | 15 | #include <ctype.h> |
| 16 | #include <errno.h> | ||
| 17 | #include <fcntl.h> | 16 | #include <fcntl.h> |
| 18 | #include <float.h> | 17 | #include <float.h> |
| 19 | #include <inttypes.h> | 18 | #include <inttypes.h> |
| 20 | #include <limits.h> | 19 | #include <limits.h> |
| 21 | #include <locale.h> | ||
| 22 | #include <math.h> | 20 | #include <math.h> |
| 23 | #include <setjmp.h> | 21 | #include <setjmp.h> |
| 24 | #include <stdbool.h> | 22 | #include <stdbool.h> |
| 25 | #include <stdarg.h> | 23 | #include <stdarg.h> |
| 26 | #include <stdio.h> | 24 | #include <stdio.h> |
| 27 | #include <stddef.h> | ||
| 28 | #include <stdint.h> | 25 | #include <stdint.h> |
| 29 | #include <stdlib.h> | 26 | #include <stdlib.h> |
| 30 | #include <string.h> | 27 | #include <string.h> |
| 31 | #include <strings.h> | 28 | #include <strings.h> |
| 32 | #include <sys/mman.h> | ||
| 33 | #include <sys/stat.h> | ||
| 34 | #include <sys/time.h> | ||
| 35 | #include <sys/types.h> | ||
| 36 | #include <time.h> | ||
| 37 | #include <unistd.h> | 29 | #include <unistd.h> |
| 38 | #include <wctype.h> | ||
| 39 | #include <wchar.h> | ||
| 40 | 30 | ||
| 41 | #if defined(__linux__) | 31 | #if defined(__linux__) |
| 42 | #define __os_name__ "linux" | 32 | #define __os_name__ "linux" |
| @@ -63,9 +53,6 @@ extern char *os_version; · 20 unmodified lines | |||
| 63 | #error pointer size unknown | 53 | #error pointer size unknown |
| 64 | #elif __SIZEOF_POINTER__ == 8 | 54 | #elif __SIZEOF_POINTER__ == 8 |
| 65 | #define BITS64 | 55 | #define BITS64 |
| 66 | #if defined(__aarch64__) | ||
| 67 | #define FWD_BIT (1ULL<<55) | ||
| 68 | #endif | ||
| 69 | #endif | 56 | #endif |
| 70 | 57 | ||
| 71 | typedef sigjmp_buf sl_jmp_buf; | 58 | typedef sigjmp_buf sl_jmp_buf; |
| @@ -1,5 +1,10 @@ | |||
| 1 | #include "slpriv.h" | 1 | #include "slpriv.h" |
| 2 | #include "timefuncs.h" | 2 | #include "timefuncs.h" |
| 3 | #include <errno.h> | ||
| 4 | #include <locale.h> | ||
| 5 | #include <sys/mman.h> | ||
| 6 | #include <sys/time.h> | ||
| 7 | #include <time.h> | ||
| 3 | 8 | ||
| 4 | static usize pagesize = 4096; | 9 | static usize pagesize = 4096; |
| 5 | #define PAGEALIGNED(x) (((x) + pagesize-1) & ~(pagesize-1)) | 10 | #define PAGEALIGNED(x) (((x) + pagesize-1) & ~(pagesize-1)) |