prefer clang cold attrib over minsize attrib

This commit is contained in:
conrad
2022-08-15 16:52:05 +10:00
parent 5b479d6675
commit 9da1598a2d
+4 -4
View File
@@ -267,12 +267,12 @@
#define arma_hot __attribute__((__hot__))
#endif
#if __has_attribute(__minsize__)
#undef arma_cold
#define arma_cold __attribute__((__minsize__))
#elif __has_attribute(__cold__)
#if __has_attribute(__cold__)
#undef arma_cold
#define arma_cold __attribute__((__cold__))
#elif __has_attribute(__minsize__)
#undef arma_cold
#define arma_cold __attribute__((__minsize__))
#endif
#if defined(__has_builtin) && __has_builtin(__builtin_assume_aligned)