git-svn-id: https://svn.osgeo.org/grass/grass/trunk@34017 15284696-431f-4ddb-bdfa-cd5b030d7da7
@@ -11,7 +11,7 @@ CELL qc250b(CELL pixel)
{
CELL qctemp;
- qctemp >> 2; /*bits [2-3] become [0-1] */
+ pixel >>= 2; /*bits [2-3] become [0-1] */
qctemp = pixel & 0x03;
return qctemp;
@@ -17,7 +17,7 @@ CELL qc250c(CELL pixel, int bandno)
- qctemp >> 4 + (4 * (bandno - 1)); /* bitshift [4-7] or [8-11] to [0-3] */
+ pixel >>= 4 + (4 * (bandno - 1)); /* bitshift [4-7] or [8-11] to [0-3] */
qctemp = pixel & 0x0F;
@@ -9,7 +9,7 @@ CELL qc250d(CELL pixel)
- qctemp >> 12; /* bit no 12 becomes 0 */
+ pixel >>= 12; /* bit no 12 becomes 0 */
qctemp = pixel & 0x01;
@@ -9,7 +9,7 @@ CELL qc250e(CELL pixel)
- qctemp >> 13; /* bit no 13 becomes 0 */
+ pixel >>= 13; /* bit no 13 becomes 0 */
@@ -9,7 +9,7 @@ CELL qc250f(CELL pixel)
- qctemp >> 14; /* bit no 14 becomes 0 */
+ pixel >>= 14; /* bit no 14 becomes 0 */
@@ -19,7 +19,7 @@ CELL qc500c(CELL pixel, int bandno)
- pixel >> 2 + (4 * (bandno - 1)); /* bitshift [] to [0-3] etc. */
+ pixel >>= 2 + (4 * (bandno - 1)); /* bitshift [] to [0-3] etc. */
@@ -9,7 +9,7 @@ CELL qc500d(CELL pixel)
- pixel >> 30; /* bit no 30 becomes 0 */
+ pixel >>= 30; /* bit no 30 becomes 0 */
@@ -9,7 +9,7 @@ CELL qc500e(CELL pixel)
- pixel >> 31; /* bit no 31 becomes 0 */
+ pixel >>= 31; /* bit no 31 becomes 0 */