diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2010-09-14 15:21:49 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2010-09-23 17:17:03 +0530 |
commit | ab4223e9cffbc21399c0468dd89a2e57122fbfee (patch) | |
tree | f8111c47778ff5f8b0f42f0dd60cda7fb9193625 /src/pulsecore/cpu-x86.h | |
parent | ffcf3c8a6c3f8a98eaa9bad5b9b573fa843da9cb (diff) |
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.
Diffstat (limited to 'src/pulsecore/cpu-x86.h')
-rw-r--r-- | src/pulsecore/cpu-x86.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/cpu-x86.h b/src/pulsecore/cpu-x86.h index 285c2031..0045ef6d 100644 --- a/src/pulsecore/cpu-x86.h +++ b/src/pulsecore/cpu-x86.h @@ -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; |