Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2020-04-01 02:22:41 +0300
committerGitHub <noreply@github.com>2020-04-01 02:22:41 +0300
commit02881e591b3b6d00395ac13fa8ea80983610e106 (patch)
tree7a8b6ccc10215e855c511c81d32e017718fb7c6d /lfs_util.h
parent38024d5a17baa51a35c64628547526abcb2b3f63 (diff)
parent626006af0caefc0ad3f1749ceb06410e5704d130 (diff)
Merge pull request #360 from jpdoyle/master
Fix incorrect comment on `lfs_npw2`
Diffstat (limited to 'lfs_util.h')
-rw-r--r--lfs_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lfs_util.h b/lfs_util.h
index 2544bc9..2e04974 100644
--- a/lfs_util.h
+++ b/lfs_util.h
@@ -111,7 +111,7 @@ static inline uint32_t lfs_alignup(uint32_t a, uint32_t alignment) {
return lfs_aligndown(a + alignment-1, alignment);
}
-// Find the next smallest power of 2 less than or equal to a
+// Find the smallest power of 2 greater than or equal to a
static inline uint32_t lfs_npw2(uint32_t a) {
#if !defined(LFS_NO_INTRINSICS) && (defined(__GNUC__) || defined(__CC_ARM))
return 32 - __builtin_clz(a-1);