Latte: Very minor refactor + optimization

This commit is contained in:
Exzap 2023-09-20 04:54:36 +02:00
parent 65e5e20afc
commit 4d6b72b353
2 changed files with 18 additions and 18 deletions

View file

@ -235,10 +235,13 @@ inline uint64 _udiv128(uint64 highDividend, uint64 lowDividend, uint64 divisor,
#if defined(_MSC_VER)
#define UNREACHABLE __assume(false)
#define ASSUME(__cond) __assume(__cond)
#elif defined(__GNUC__)
#define UNREACHABLE __builtin_unreachable()
#define ASSUME(__cond) __attribute__((assume(__cond)))
#else
#define UNREACHABLE
#define ASSUME(__cond)
#endif
#if defined(_MSC_VER)