utils: add bit count and bit count mask

This commit is contained in:
CTCaer committed 2021-06-08 05:53:58 +03:00
1 parent ce6926c36c
commit 539caf3d83
2 files changed
+24

No files matched your search

+3
View File
@@ -84,6 +84,9 @@ typedef struct _nyx_storage_t
emc_table_t mtc_table[10];
} nyx_storage_t;
u8 bit_count(u32 val);
u32 bit_count_mask(u8 bits);
void exec_cfg(u32 *base, const cfg_op_t *ops, u32 num_ops);
u32 crc32_calc(u32 crc, const u8 *buf, u32 len);