spa/support: implement ARM CPU detection

Code is based on PulseAudio's implementation, originally written by Wim
This commit is contained in:
George Kiagiadakis 2019-02-08 17:48:58 +02:00 committed by Wim Taymans
parent d9c2f77cfe
commit 4be52f16bd
2 changed files with 126 additions and 0 deletions

View file

@ -51,6 +51,9 @@ struct impl {
# if defined (__i386__) || defined (__x86_64__)
#include "cpu-x86.c"
#define init(t) x86_init(t)
# elif defined (__arm__) || defined (__aarch64__)
#include "cpu-arm.c"
#define init(t) arm_init(t)
#endif
static uint32_t