Lines Matching defs:shift
192 * Apply color index shift and offset to an array of pixels.
198 GLint shift = ctx->Pixel.IndexShift;
201 if (shift > 0) {
203 indexes[i] = (indexes[i] << shift) + offset;
206 else if (shift < 0) {
207 shift = -shift;
209 indexes[i] = (indexes[i] >> shift) + offset;
222 * Apply color index shift, offset and table lookup to an array
245 * Apply stencil index shift, offset and table lookup to an array
254 GLint shift = ctx->Pixel.IndexShift;
256 if (shift > 0) {
258 stencil[i] = (stencil[i] << shift) + offset;
261 else if (shift < 0) {
262 shift = -shift;
264 stencil[i] = (stencil[i] >> shift) + offset;