diff options
author | Christopher Haster <chaster@utexas.edu> | 2020-04-01 02:22:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-01 02:22:41 +0300 |
commit | 02881e591b3b6d00395ac13fa8ea80983610e106 (patch) | |
tree | 7a8b6ccc10215e855c511c81d32e017718fb7c6d /lfs_util.h | |
parent | 38024d5a17baa51a35c64628547526abcb2b3f63 (diff) | |
parent | 626006af0caefc0ad3f1749ceb06410e5704d130 (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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |