| Summary: | [PATCH] Improved CPU detection on ARM platforms | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Cameron Cawley <ccawley2011> |
| Component: | *don't know* | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | HG 2.0 | ||
| Hardware: | ARM | ||
| OS: | All | ||
| Bug Depends on: | |||
| Bug Blocks: | 4984 | ||
| Attachments: | Improved CPU detection on ARM platforms | ||
This looks good, thanks! https://hg.libsdl.org/SDL/rev/604325956b9a |
Created attachment 4191 [details] Improved CPU detection on ARM platforms __ARM_ARCH is not defined with GCC 4.7, as used on RISC OS. In addition, from what I understand, SIMD instructions are guaranteed to be available when building SDL for ARMv6 or later, so this patch also adds compile-time checks for that as well. As a result, this means SDL_HasARMSIMD() now works correctly on AArch64.