src/gui/image/qbmphandler.cpp
branchRCL_3
changeset 5 d3bac044e0f0
parent 4 3b1da2848fc7
equal deleted inserted replaced
4:3b1da2848fc7 5:d3bac044e0f0
   142 }
   142 }
   143 
   143 
   144 static int calc_shift(int mask)
   144 static int calc_shift(int mask)
   145 {
   145 {
   146     int result = 0;
   146     int result = 0;
   147     while (!(mask & 1)) {
   147     while (mask && !(mask & 1)) {
   148         result++;
   148         result++;
   149         mask >>= 1;
   149         mask >>= 1;
   150     }
   150     }
   151     return result;
   151     return result;
   152 }
   152 }