Fixed bug 5209 - cpuinfo recognize OpenBSD ARM

Brad Smith

OpenBSD/arm only supports ARMv7 and and not any CPUs that do not support NEON.
Sam Lantinga 2020-06-23 10:09:29 -07:00
parent 4ba0a84718
commit c2b8530591
1 changed files with 2 additions and 0 deletions

View File

@ -457,6 +457,8 @@ CPU_haveNEON(void)
return 1; /* all Apple ARMv7 chips and later have NEON. */ return 1; /* all Apple ARMv7 chips and later have NEON. */
#elif defined(__APPLE__) #elif defined(__APPLE__)
return 0; /* assume anything else from Apple doesn't have NEON. */ return 0; /* assume anything else from Apple doesn't have NEON. */
#elif defined(__OpenBSD__)
return 1; /* OpenBSD only supports ARMv7 CPUs that have NEON. */
#elif !defined(__arm__) #elif !defined(__arm__)
return 0; /* not an ARM CPU at all. */ return 0; /* not an ARM CPU at all. */
#elif defined(__QNXNTO__) #elif defined(__QNXNTO__)