include: sbi_bitops: More useful bit operations
authorAnup Patel <anup.patel@wdc.com>
Wed, 4 Mar 2020 06:18:31 +0000 (11:48 +0530)
committerAnup Patel <anup@brainfault.org>
Sun, 8 Mar 2020 05:39:46 +0000 (11:09 +0530)
commita148996a7f9097a1f8e43cc62bd65972b008cad4
tree4b0997037a50256b2c6bee2d693a4b17b3301cb0
parent00d332bbe726d85e4c2b81ab0a08182612f96c03
include: sbi_bitops: More useful bit operations

This patch extends our bit operation library with mechanism to:
1. Iteratively traverse bits
2. Set bit
3. Clear bit
4. Change bit
5. ... other helpful functions ...

Most the above is adopted from Xvisor sources.

Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
include/sbi/sbi_bitops.h
lib/sbi/objects.mk
lib/sbi/sbi_bitops.c [new file with mode: 0644]