Fix alignment issues on 32 bit iOS#1869
Fix alignment issues on 32 bit iOS#1869Un1q32 wants to merge 1 commit intozlib-ng:developfrom Un1q32:develop
Conversation
WalkthroughThis pull request updates the preprocessor conditional in the ARM NEON intrinsics header file. The condition, originally targeting Clang on 32-bit Android, is extended to include iOS. No changes were made to any function implementations or public declarations. Changes
Assessment against linked issues
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (30)
🔇 Additional comments (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
| # if defined(__clang__) && defined(__arm__) && defined(__ANDROID__) | ||
| /* Clang for 32-bit Android has too strict alignment requirement (:256) for x4 NEON intrinsics */ | ||
| # if defined(__clang__) && defined(__arm__) && (defined(__ANDROID__) || defined(__APPLE__)) | ||
| /* Clang for 32-bit Android and iOS has too strict alignment requirement (:256) for x4 NEON intrinsics */ |
There was a problem hiding this comment.
Maybe use __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ instead of __APPLE__, because __APPLE__ is defined on macOS too.
There was a problem hiding this comment.
__arm__ being defined is also required, so I don't think it's an issue since there is no 32 bit arm macOS.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1869 +/- ##
===========================================
- Coverage 80.44% 80.39% -0.06%
===========================================
Files 139 139
Lines 11176 11176
Branches 2867 2867
===========================================
- Hits 8991 8985 -6
+ Misses 1221 1220 -1
- Partials 964 971 +7 ☔ View full report in Codecov by Sentry. |
|
I'd remove the ANDROID and APPLE defines. This code works nowhere: |
|
Closing in favor of #1824 |
Just extends the Android fix to also apply to iOS
Fixes #1842
Summary by CodeRabbit