Fix building with runtime CPU detection disabled#1931
Conversation
## Walkthrough
The changes update macro definitions in three architecture-specific header files and improve formatting in a fourth. In the ARM header, the macro for `native_adler32_fold_copy` is explicitly undefined before being redefined to use the NEON implementation. In the generic and s390 headers, the `native_crc32` macro definitions are corrected or simplified. The x86 header receives indentation and comment formatting adjustments without functional changes.
## Changes
| File(s) | Change Summary |
|-------------------------------------------|------------------------------------------------------------------------------------------------|
| arch/arm/arm_functions.h | Added `#undef native_adler32_fold_copy` before redefining it as `adler32_fold_copy_neon` under `DISABLE_RUNTIME_CPU_DETECTION`. |
| arch/generic/generic_functions.h | Changed `#define native_crc32 PREFIX(crc32_c)` to `#define native_crc32 crc32_c` under `DISABLE_RUNTIME_CPU_DETECTION`. |
| arch/s390/s390_functions.h | Fixed macro syntax by removing erroneous '=' in `#define native_crc32 = crc32_s390_vx` → `#define native_crc32 crc32_s390_vx`. |
| arch/x86/x86_functions.h | Adjusted preprocessor directive indentation and added comment before SSE4.1 block; no functional changes. |
## Possibly related PRs
- zlib-ng/zlib-ng#1870: Involves introduction and macro mapping of `adler32_fold_copy_neon` in `arch/arm/arm_functions.h`, which is directly affected by the macro redefinition in this PR.📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (2)
🧰 Additional context used🧠 Learnings (2)📓 Common learningsarch/x86/x86_functions.h (19)⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (91)
🔇 Additional comments (5)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1931 +/- ##
===========================================
+ Coverage 81.62% 81.65% +0.02%
===========================================
Files 150 150
Lines 13618 13618
Branches 3052 3052
===========================================
+ Hits 11116 11120 +4
- Misses 1510 1516 +6
+ Partials 992 982 -10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
d61e73a to
e3842be
Compare
Summary by CodeRabbit