We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cf4715 commit b52575bCopy full SHA for b52575b
features/filesystem/littlefs/littlefs/lfs_util.h
@@ -39,7 +39,7 @@ static inline uint32_t lfs_min(uint32_t a, uint32_t b) {
39
static inline uint32_t lfs_ctz(uint32_t a) {
40
#if defined(__GNUC__) || defined(__CC_ARM)
41
return __builtin_ctz(a);
42
-#elif defined(__ICCARM__)
+#elif defined(__ICCARM__) && defined(__CLZ)
43
return __CLZ(__RBIT(a));
44
#else
45
uint32_t r = 32;
@@ -57,7 +57,7 @@ static inline uint32_t lfs_ctz(uint32_t a) {
57
static inline uint32_t lfs_npw2(uint32_t a) {
58
59
return 32 - __builtin_clz(a-1);
60
61
return 32 - __CLZ(a-1);
62
63
uint32_t r = 0;
0 commit comments