aboutsummaryrefslogtreecommitdiff
path: root/common/math.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/math.h')
-rw-r--r--common/math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/math.h b/common/math.h
index 9542cb601a..56ab171bd3 100644
--- a/common/math.h
+++ b/common/math.h
@@ -50,7 +50,7 @@ struct Complex {
float re, im;
};
-#ifdef __GNUC__
+#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
inline int intLog2(uint32 v) {
// This is a slightly optimized implementation of log2 for natural numbers
// targeting gcc. It also saves some binary size over our fallback