summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_util.h
blob: 57a4c95adb6a43edf85b86a9538502d8b25d15e9 (plain)
1
2
3
4
5
6
7
8
9
#pragma once

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