Skip to content

Storage: Remove support for ARM Compiler 5 #12699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions features/storage/filesystem/littlefs/littlefs/lfs_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ static inline uint32_t lfs_min(uint32_t a, uint32_t b) {
// Find the next smallest power of 2 less than or equal to a
static inline uint32_t lfs_npw2(uint32_t a) {
#if !defined(LFS_NO_INTRINSICS) && MBED_LFS_INTRINSICS && \
(defined(__GNUC__) || defined(__CC_ARM))
defined(__GNUC__)
return 32 - __builtin_clz(a-1);
#else
uint32_t r = 0;
Expand Down Expand Up @@ -144,7 +144,7 @@ static inline uint32_t lfs_ctz(uint32_t a) {
// Count the number of binary ones in a
static inline uint32_t lfs_popc(uint32_t a) {
#if !defined(LFS_NO_INTRINSICS) && MBED_LFS_INTRINSICS && \
(defined(__GNUC__) || defined(__CC_ARM))
defined(__GNUC__)
return __builtin_popcount(a);
#else
a = a - ((a >> 1) & 0x55555555);
Expand Down