1
0
Fork 0

[Core] Add support for 64-bit layer bitmask

This commit is contained in:
Drashna Jael're 2023-08-31 19:17:40 -07:00
parent 2c64cdf760
commit 68ba4e0305
Signed by: drashna
GPG key ID: DBA1FD3A860D1B11
3 changed files with 51 additions and 0 deletions

View file

@ -67,6 +67,13 @@ typedef uint32_t layer_state_t;
# define MAX_LAYER 32
# endif
# define get_highest_layer(state) biton32(state)
#elif defined(LAYER_STATE_64BIT)
typedef uint64_t layer_state_t;
# define MAX_LAYER_BITS 6
# ifndef MAX_LAYER
# define MAX_LAYER 64
# endif
# define get_highest_layer(state) biton64(state)
#else
# error Layer Mask size not specified. HOW?!
#endif