summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorPauli Nieminen <[email protected]>2010-02-06 06:32:40 +0200
committerPauli Nieminen <[email protected]>2010-02-06 19:24:44 +0200
commitd41740e969ce1ef084fa7a51208d43ac6883adf8 (patch)
tree9f1ec89bd15527bfb3cf037a2189ca87fa09f2b1 /src/mesa/drivers/dri
parentf8969dd24ff4264c0c11ea5266093b6ce2ef221a (diff)
mesa/main: Add function to find next higher power of two.
With gcc implementation uses __builtin_clr which counts number of leading zeros. Fallback implementation uses bit manipulation. First it duplicates the highest bit to all lower bits and then adds one to get the power of two number.
Diffstat (limited to 'src/mesa/drivers/dri')
0 files changed, 0 insertions, 0 deletions