Squash commits for public release
This commit is contained in:
13
kernel/include/libkern/mask.h
Normal file
13
kernel/include/libkern/mask.h
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef _KERNEL_LIBKERN_MASK_H
|
||||
#define _KERNEL_LIBKERN_MASK_H
|
||||
|
||||
#define MASKDEFINE(N, P, S) \
|
||||
N##_POS = (P), \
|
||||
N##_SIZE = (S), \
|
||||
N##_MASK = ((~(~0 << (S))) << (P))
|
||||
|
||||
#define TOKEN_PASTE_IMPL(x, y) x##y
|
||||
#define TOKEN_PASTE(x, y) TOKEN_PASTE_IMPL(x, y)
|
||||
#define SKIP(x, y) char TOKEN_PASTE(prefix, __LINE__)[y - x - 8]
|
||||
|
||||
#endif // _KERNEL_LIBKERN_MASK_H
|
||||
Reference in New Issue
Block a user