Implement switch case generation.

This commit is contained in:
Skyth
2024-09-18 11:37:50 +03:00
parent fc43264f72
commit e0cb6c7903
4 changed files with 59 additions and 4 deletions

View File

@@ -12,10 +12,12 @@
#define _byteswap_uint64 __builtin_bswap64
#define isnan __builtin_isnan
#define __assume __builtin_assume
#define __unreachable() __builtin_unreachable()
#define PPC_FUNC __attribute__((weak,noinline))
#else
#include <intrin.h>
#define PPC_FUNC __declspec(noinline)
#define __unreachable() __assume(0)
#endif
#define PPC_LOAD_U8(x) *(uint8_t*)(base + (x))