diff options
author | Brian Paul <[email protected]> | 2005-12-02 18:06:01 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-12-02 18:06:01 +0000 |
commit | 8716e7570d17c3e6bcf7e5c1d8aa3a0c5035a5ac (patch) | |
tree | 25fdca95ac153de2b4dec85c3ed7f5641260e520 /src/mesa | |
parent | 5abff7bc4da6eedbfe2a6e98f81f7b13ea90a27f (diff) |
fix _mesa_ffs() return, test for more platforms (Evgeny Kotsuba)
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/imports.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c index 7c37cbf399c..97d7d57bd28 100644 --- a/src/mesa/main/imports.c +++ b/src/mesa/main/imports.c @@ -534,7 +534,7 @@ _mesa_pow(double x, double y) int _mesa_ffs(int i) { -#if defined(_WIN32) && !defined(__MINGW32__) +#if (defined(_WIN32) && !defined(__MINGW32__) ) || defined(__IBMC__) || defined(__IBMCPP__) register int bit = 0; if (i != 0) { if ((i & 0xffff) == 0) { @@ -553,8 +553,8 @@ _mesa_ffs(int i) bit++; i >>= 1; } - return bit; } + return bit; #elif defined(XFree86LOADER) && defined(IN_MODULE) return xf86ffs(i); #else |