Skip to content

Commit

Permalink
Enable SIMD for aarch64.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiw committed Dec 2, 2024
1 parent 22a49fe commit dc37633
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,14 @@ bool MainApp::OnInit()

#endif // _WIN32 || __APPLE__

#if __aarch64__
// For 64-bit ARM, it's safe to assume some form of SIMD is available,
// so make sure we enable it for soxr. (soxr will auto-enable on x86
// as appropriate, so no need to explicitly force on that platform).
wxSetEnv("SOXR_USE_SIMD32", "1");
wxSetEnv("SOXR_USE_SIMD64", "1");
#endif // __aarch64__

#if defined(UNOFFICIAL_RELEASE)
// Terminate the application if the current date > expiration date
wxDateTime buildDate;
Expand Down

0 comments on commit dc37633

Please sign in to comment.