summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_util.h
blob: 2b004889214bfa33e28967bfb8eac4c48906d0b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
#ifndef RADV_UTIL_H
#define RADV_UTIL_H

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

#endif /* RADV_UTIL_H */