Skip to content

Commit

Permalink
[Fix] Determine whether "arm_acle.h" is defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
yyctw committed Oct 27, 2023
1 parent 6459e26 commit c9636fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
18 changes: 8 additions & 10 deletions simde/arm/neon/crc32.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ simde___crc32b(uint32_t a, uint8_t b) {
uint32_t result = ((head & 0x00FFFFFF) << 8) | ((tail & 0xFF000000) >> 24);
return HEDLEY_STATIC_CAST(uint32_t, reverseBits(result, 32));
}
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE) && defined(__ARM_ACLE)
#define simde___crc32b(a, b) __crc32b((a), (b))
#endif
#if defined(SIMDE_ARM_NEON_A32V8_ENABLE_NATIVE_ALIASES)
Expand All @@ -94,7 +94,7 @@ simde___crc32h(uint32_t a, uint16_t b) {
uint32_t result = ((head & 0x0000FFFF) << 16) | ((tail & 0xFFFF0000) >> 16);
return HEDLEY_STATIC_CAST(uint32_t, reverseBits(result, 32));
}
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE) && defined(__ARM_ACLE)
#define simde___crc32h(a, b) __crc32h((a), (b))
#endif
#if defined(SIMDE_ARM_NEON_A32V8_ENABLE_NATIVE_ALIASES)
Expand All @@ -118,7 +118,7 @@ simde___crc32w(uint32_t a, uint32_t b) {
}
return HEDLEY_STATIC_CAST(uint32_t, reverseBits(tail, 32));
}
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE) && defined(__ARM_ACLE)
#define simde___crc32w(a, b) __crc32w((a), (b))
#endif
#if defined(SIMDE_ARM_NEON_A32V8_ENABLE_NATIVE_ALIASES)
Expand Down Expand Up @@ -152,8 +152,7 @@ simde___crc32d(uint32_t a, uint64_t b) {
}
return HEDLEY_STATIC_CAST(uint32_t, reverseBits(tail, 32));
}

#if defined(SIMDE_ARM_NEON_A32V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE) && defined(__ARM_ACLE)
#define simde___crc32d(a, b) __crc32d((a), (b))
#endif
#if defined(SIMDE_ARM_NEON_A32V8_ENABLE_NATIVE_ALIASES)
Expand All @@ -178,7 +177,7 @@ simde___crc32cb(uint32_t a, uint8_t b) {
uint32_t result = ((head & 0x00FFFFFF) << 8) | ((tail & 0xFF000000) >> 24);
return HEDLEY_STATIC_CAST(uint32_t, reverseBits(result, 32));
}
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE) && defined(__ARM_ACLE)
#define simde___crc32cb(a, b) __crc32cb((a), (b))
#endif
#if defined(SIMDE_ARM_NEON_A32V8_ENABLE_NATIVE_ALIASES)
Expand All @@ -203,7 +202,7 @@ simde___crc32ch(uint32_t a, uint16_t b) {
uint32_t result = ((head & 0x0000FFFF) << 16) | ((tail & 0xFFFF0000) >> 16);
return HEDLEY_STATIC_CAST(uint32_t, reverseBits(result, 32));
}
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE) && defined(__ARM_ACLE)
#define simde___crc32ch(a, b) __crc32ch((a), (b))
#endif
#if defined(SIMDE_ARM_NEON_A32V8_ENABLE_NATIVE_ALIASES)
Expand All @@ -227,7 +226,7 @@ simde___crc32cw(uint32_t a, uint32_t b) {
}
return HEDLEY_STATIC_CAST(uint32_t, reverseBits(tail, 32));
}
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE) && defined(__ARM_ACLE)
#define simde___crc32cw(a, b) __crc32cw((a), (b))
#endif
#if defined(SIMDE_ARM_NEON_A32V8_ENABLE_NATIVE_ALIASES)
Expand Down Expand Up @@ -261,8 +260,7 @@ simde___crc32cd(uint32_t a, uint64_t b) {
}
return HEDLEY_STATIC_CAST(uint32_t, reverseBits(tail, 32));
}

#if defined(SIMDE_ARM_NEON_A32V8_NATIVE)
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE) && defined(__ARM_ACLE)
#define simde___crc32cd(a, b) __crc32cd((a), (b))
#endif
#if defined(SIMDE_ARM_NEON_A32V8_ENABLE_NATIVE_ALIASES)
Expand Down
2 changes: 1 addition & 1 deletion simde/simde-features.h
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
#define SIMDE_ARM_NEON_A32V8_NATIVE
#endif
#endif
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE)
#if defined(__ARM_ACLE)
#include <arm_acle.h>
#endif
#if defined(SIMDE_ARM_NEON_A32V8_NATIVE) && !defined(SIMDE_ARM_NEON_A32V7_NATIVE)
Expand Down

0 comments on commit c9636fb

Please sign in to comment.