diff options
author | Pauli Nieminen <suokkos@gmail.com> | 2010-02-06 06:32:40 +0200 |
---|---|---|
committer | Pauli Nieminen <suokkos@gmail.com> | 2010-02-06 19:24:44 +0200 |
commit | d41740e969ce1ef084fa7a51208d43ac6883adf8 (patch) | |
tree | 9f1ec89bd15527bfb3cf037a2189ca87fa09f2b1 /src/mesa/main/rastpos.h | |
parent | f8969dd24ff4264c0c11ea5266093b6ce2ef221a (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/main/rastpos.h')
0 files changed, 0 insertions, 0 deletions