| 1 | #ifndef COMMON_H |
| 2 | #define COMMON_H |
| 3 | |
| 4 | #include <stdint.h> |
| 5 | |
| 6 | #ifdef NEON_PC |
| 7 | typedef int8_t s8; |
| 8 | typedef uint8_t u8; |
| 9 | typedef int16_t s16; |
| 10 | typedef uint16_t u16; |
| 11 | typedef int32_t s32; |
| 12 | typedef uint32_t u32; |
| 13 | typedef int64_t s64; |
| 14 | typedef uint64_t u64; |
| 15 | #else |
| 16 | typedef signed char s8; |
| 17 | typedef unsigned char u8; |
| 18 | typedef signed short s16; |
| 19 | typedef unsigned short u16; |
| 20 | typedef signed int s32; |
| 21 | typedef unsigned int u32; |
| 22 | typedef signed long long int s64; |
| 23 | typedef unsigned long long int u64; |
| 24 | #endif |
| 25 | |
| 26 | #include <stdlib.h> |
| 27 | #include <string.h> |
| 28 | #include <sys/time.h> |
| 29 | |
| 30 | #include "vector_ops.h" |
| 31 | #include "psx_gpu.h" |
| 32 | |
| 33 | #define unlikely(x) __builtin_expect((x), 0) |
| 34 | |
| 35 | #endif |
| 36 | |