diff options
Diffstat (limited to 'src/libs/dxvk-native-1.9.2a/src/util/util_likely.h')
-rw-r--r-- | src/libs/dxvk-native-1.9.2a/src/util/util_likely.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libs/dxvk-native-1.9.2a/src/util/util_likely.h b/src/libs/dxvk-native-1.9.2a/src/util/util_likely.h new file mode 100644 index 00000000..7eba9818 --- /dev/null +++ b/src/libs/dxvk-native-1.9.2a/src/util/util_likely.h @@ -0,0 +1,9 @@ +#pragma once + +#ifdef __GNUC__ +#define likely(x) __builtin_expect((x),1) +#define unlikely(x) __builtin_expect((x),0) +#else +#define likely(x) (x) +#define unlikely(x) (x) +#endif |