Searched refs:PALETTE_BITS (Results 1 – 2 of 2) sorted by relevance
131 #define PALETTE_BITS 8 macro132 #define PALETTE_SIZE (1 << PALETTE_BITS)134 #if PALETTE_BITS > FIXED_BITS135 # error PALETTE_BITS must be smaller than FIXED_BITS 176 int idx = FIXED_FRAC(x) >> (FIXED_BITS - PALETTE_BITS); in palette_from_fixed()
136 #define PALETTE_BITS 8 macro137 #define PALETTE_SIZE (1 << PALETTE_BITS)139 #if PALETTE_BITS > FIXED_BITS140 # error PALETTE_BITS must be smaller than FIXED_BITS 181 int idx = FIXED_FRAC(x) >> (FIXED_BITS - PALETTE_BITS); in palette_from_fixed()