nuttx/fs/mnemofs
Sumit6307 bd5e017ebd fs/mnemofs: Add portable bit primitives and cleanup hash functions
This PR addresses several portability and technical debt issues in the mnemofs filesystem by resolving source-level TODO items.

Changes:
- Implemented a portable fallback for mfs\_clz (Count Leading Zeros) in fs/mnemofs/mnemofs.h using a binary search approach. This ensures compatibility with non-GCC compilers.
- Removed the redundant 8-bit mfs\_arrhash and consolidated hashing with the existing 16-bit mfs\_hash in mnemofs\_util.c.
- Removed the related TODO comments in mnemofs.h and mnemofs\_util.c.
- Fixed NuttX style (indentation and braces) in the fallback bit primitives.

Signed-off-by: Sumit <sumit6307@gmail.com>
2026-03-11 15:07:43 -03:00
..
CMakeLists.txt fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
Kconfig fs/mnemofs: Add logs to bind and unbind. 2024-10-22 16:37:25 +08:00
Make.defs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
mnemofs.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mnemofs.h fs/mnemofs: Add portable bit primitives and cleanup hash functions 2026-03-11 15:07:43 -03:00
mnemofs_blkalloc.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
mnemofs_ctz.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mnemofs_fsobj.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mnemofs_journal.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
mnemofs_lru.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mnemofs_master.c style: fix spelling in code comments and strings 2025-05-23 10:48:41 +08:00
mnemofs_rw.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
mnemofs_util.c fs/mnemofs: Add portable bit primitives and cleanup hash functions 2026-03-11 15:07:43 -03:00