diff options
author | Johannes Schickel | 2011-07-24 20:18:21 +0200 |
---|---|---|
committer | Johannes Schickel | 2011-07-24 20:18:21 +0200 |
commit | 950faa4143a8473f77ddc78c02fda7d38f1f557d (patch) | |
tree | 973ff7592d71f7d61d14903941eb9a57af638d33 | |
parent | a1bfbe65ba3f9e3d6cf690c6f48a4719a98ae45c (diff) | |
download | scummvm-rg350-950faa4143a8473f77ddc78c02fda7d38f1f557d.tar.gz scummvm-rg350-950faa4143a8473f77ddc78c02fda7d38f1f557d.tar.bz2 scummvm-rg350-950faa4143a8473f77ddc78c02fda7d38f1f557d.zip |
COMMON: Limited gcc specific intLog2 to gcc 3.4 or newer.
Older gcc versions did not include __builtin_clz, which made the PS2 port
fail to compile, since it uses 3.2.2.
-rw-r--r-- | common/math.h | 2 |
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 |