Skip to content

Commit ee476d9

Browse files
authored
Merge pull request #12699 from hugueskamba/hk_remove_armc5_support_storage
Storage: Remove support for ARM Compiler 5
2 parents 447cfbc + a9a00e9 commit ee476d9

File tree

1 file changed

+2
-2
lines changed
  • features/storage/filesystem/littlefs/littlefs

1 file changed

+2
-2
lines changed

features/storage/filesystem/littlefs/littlefs/lfs_util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static inline uint32_t lfs_min(uint32_t a, uint32_t b) {
116116
// Find the next smallest power of 2 less than or equal to a
117117
static inline uint32_t lfs_npw2(uint32_t a) {
118118
#if !defined(LFS_NO_INTRINSICS) && MBED_LFS_INTRINSICS && \
119-
(defined(__GNUC__) || defined(__CC_ARM))
119+
defined(__GNUC__)
120120
return 32 - __builtin_clz(a-1);
121121
#else
122122
uint32_t r = 0;
@@ -144,7 +144,7 @@ static inline uint32_t lfs_ctz(uint32_t a) {
144144
// Count the number of binary ones in a
145145
static inline uint32_t lfs_popc(uint32_t a) {
146146
#if !defined(LFS_NO_INTRINSICS) && MBED_LFS_INTRINSICS && \
147-
(defined(__GNUC__) || defined(__CC_ARM))
147+
defined(__GNUC__)
148148
return __builtin_popcount(a);
149149
#else
150150
a = a - ((a >> 1) & 0x55555555);

0 commit comments

Comments
 (0)