aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/vulkan/tu_util.h
blob: b013079d5181752a34328a12621192d0b725023b (plain)
1
2
3
4
5
6
7
8
9
10
11
#ifndef TU_UTIL_H
#define TU_UTIL_H

#ifdef HAVE___BUILTIN_POPCOUNT
#define util_bitcount(i) __builtin_popcount(i)
#else
extern unsigned int
util_bitcount(unsigned int n);
#endif

#endif /* TU_UTIL_H */