diff options
author | Pauli Nieminen <suokkos@gmail.com> | 2010-02-14 14:16:20 +0200 |
---|---|---|
committer | Pauli Nieminen <suokkos@gmail.com> | 2010-02-14 19:55:58 +0200 |
commit | 6e958832afe9544973528bed78dd3a340b8686f3 (patch) | |
tree | a4e63d1468fc8854649bfc3afc33d04eb4b36fc4 /src/mesa/main/debug.h | |
parent | 7344e20ce4a333bfd8ab142cfdf98098e16b001d (diff) |
mesa: Don't pass paramter to __builtin_clz which would hve undefined result.
__builtin_clz with parameter 0 has undefined value. When
using -O3 optimizing this would result to too large next
power of two value.
Fix is to check if passed value is 1 and modify formula
for that case.
Diffstat (limited to 'src/mesa/main/debug.h')
0 files changed, 0 insertions, 0 deletions