summaryrefslogtreecommitdiff
path: root/src/mesa/main/mm.h
diff options
context:
space:
mode:
authorPauli Nieminen <suokkos@gmail.com>2010-02-14 14:16:20 +0200
committerPauli Nieminen <suokkos@gmail.com>2010-02-14 19:55:58 +0200
commit6e958832afe9544973528bed78dd3a340b8686f3 (patch)
treea4e63d1468fc8854649bfc3afc33d04eb4b36fc4 /src/mesa/main/mm.h
parent7344e20ce4a333bfd8ab142cfdf98098e16b001d (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/mm.h')
0 files changed, 0 insertions, 0 deletions