diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-30 15:49:58 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-30 15:49:58 +0400 |
commit | 2c43f99c0affd1837f7ee721061e486357f7b19d (patch) | |
tree | 403011bc4feed6594e4d863972ea841e5a63fbaa /source/gameengine/Ketsji/BL_Texture.cpp | |
parent | 41cbc47fbe1598fc7f41f977d8c64a826c86be9d (diff) |
formatting edits, missed these last commit.
Diffstat (limited to 'source/gameengine/Ketsji/BL_Texture.cpp')
-rw-r--r-- | source/gameengine/Ketsji/BL_Texture.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/gameengine/Ketsji/BL_Texture.cpp b/source/gameengine/Ketsji/BL_Texture.cpp index 6c57776cb60..2c57004e6c4 100644 --- a/source/gameengine/Ketsji/BL_Texture.cpp +++ b/source/gameengine/Ketsji/BL_Texture.cpp @@ -38,10 +38,12 @@ extern "C" { } // (n&(n-1)) zeros the least significant bit of n -static int is_power_of_2_i(int num) { +static int is_power_of_2_i(int num) +{ return ((num)&(num-1))==0; } -static int power_of_2_min_i(int num) { +static int power_of_2_min_i(int num) +{ while (!is_power_of_2_i(num)) num= num&(num-1); return num; |