Prevent optimization for recompiled functions.

This commit is contained in:
Skyth
2024-09-12 15:45:39 +03:00
parent 589104a0ef
commit 572dc2a67f
2 changed files with 7 additions and 2 deletions

View File

@@ -7,6 +7,9 @@
#define _byteswap_ushort __builtin_bswap16
#define _byteswap_ulong __builtin_bswap32
#define _byteswap_uint64 __builtin_bswap64
#define PPC_FUNC extern inline __attribute__((weak,noinline))
#else
#define PPC_FUNC __declspec(noinline)
#endif
#define PPC_LOAD_U8(x) *(uint8_t*)(base + (x))