summaryrefslogtreecommitdiff
path: root/lib/sbi/sbi_bitops.c
AgeCommit message (Collapse)AuthorFilesLines
2022-02-04lib: fix compilation when strings.h is includedPetro Karashchenko1-5/+5
In a systems that provide strings.h and it is included together with sbi_bitops.h the compilation error appears. The ffs() and fls() are provided by strings.h Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com> Reviewed-by: Anup Patel <anup@brainfault.org>
2020-03-10lib: sbi: Fix coding style issuesBin Meng1-6/+6
This fixes various coding style issues found in the SBI codes. No functional changes. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
2020-03-08include: sbi_bitops: More useful bit operationsAnup Patel1-0/+200
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>