mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
cpu: Add CPU information to pa_core
This retains CPU information (processor type and supported features) in pa_core, so that this information can be used by modules at init time to figure out what optimisations may be used.
This commit is contained in:
parent
ffcf3c8a6c
commit
ab4223e9cf
8 changed files with 119 additions and 55 deletions
|
|
@ -24,6 +24,7 @@
|
|||
***/
|
||||
|
||||
#include <stdint.h>
|
||||
#include <pulsecore/macro.h>
|
||||
|
||||
typedef enum pa_cpu_x86_flag {
|
||||
PA_CPU_X86_MMX = (1 << 0),
|
||||
|
|
@ -39,7 +40,7 @@ typedef enum pa_cpu_x86_flag {
|
|||
PA_CPU_X86_CMOV = (1 << 10)
|
||||
} pa_cpu_x86_flag_t;
|
||||
|
||||
void pa_cpu_init_x86 (void);
|
||||
pa_bool_t pa_cpu_init_x86 (pa_cpu_x86_flag_t *flags);
|
||||
|
||||
#if defined (__i386__)
|
||||
typedef int32_t pa_reg_x86;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue