Lines Matching defs:shift
194 * Apply color index shift and offset to an array of pixels.
200 GLint shift = ctx->Pixel.IndexShift;
203 if (shift > 0) {
205 indexes[i] = (indexes[i] << shift) + offset;
208 else if (shift < 0) {
209 shift = -shift;
211 indexes[i] = (indexes[i] >> shift) + offset;
224 * Apply stencil index shift, offset and table lookup to an array
233 GLint shift = ctx->Pixel.IndexShift;
235 if (shift > 0) {
237 stencil[i] = (stencil[i] << shift) + offset;
240 else if (shift < 0) {
241 shift = -shift;
243 stencil[i] = (stencil[i] >> shift) + offset;