Skip to content

Commit

Permalink
Merge pull request #360 from jpdoyle/master
Browse files Browse the repository at this point in the history
Fix incorrect comment on `lfs_npw2`
  • Loading branch information
geky authored Mar 31, 2020
2 parents 38024d5 + 626006a commit 02881e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lfs_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 02881e5

Please sign in to comment.