mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 05:20:09 +01:00
asahi/genxml: define missing macros
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32320>
This commit is contained in:
parent
e01dc7a588
commit
ebdca6344e
1 changed files with 2 additions and 0 deletions
|
|
@ -24,6 +24,8 @@
|
|||
#define CONSTANT_ constant
|
||||
#define GLOBAL_ global
|
||||
#define BITFIELD64_MASK(x) ((x == 64) ? ~0ul : ((1ul << x) - 1))
|
||||
#define IS_POT(v) (((v) & ((v) - 1)) == 0)
|
||||
#define IS_POT_NONZERO(v) ((v) != 0 && IS_POT(v))
|
||||
|
||||
static uint64_t
|
||||
util_bitpack_uint(uint64_t v, uint32_t start, uint32_t end)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue