v2 initial commit

This commit is contained in:
Michael Shaw 2026-04-11 11:35:31 -04:00
commit d2ef885e8d
118 changed files with 2420 additions and 9320 deletions

12
include/lib/bitwise.h Normal file
View file

@ -0,0 +1,12 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef _BITWISE_H_
#define _BITWISE_H_
#ifndef __ASM__
#define BIT_SET(_v, _bit) ((_v) |= (1 << (_bit)))
#define BIT_CLEAR(_v, _bit) ((_v) &= (~(1 << (_bit))))
#define BIT_FLIP(_v, _bit) ((_v) ^= (1 << (_bit)))
#endif /* __ASM__ */
#endif /* _BITWISE_H_ */