1 #ifndef foocpuarmhfoo 2 #define foocpuarmhfoo 3 4 /*** 5 This file is part of PulseAudio. 6 7 Copyright 2004-2006 Lennart Poettering 8 Copyright 2009 Wim Taymans <wim.taymans@collabora.co.uk> 9 10 PulseAudio is free software; you can redistribute it and/or modify 11 it under the terms of the GNU Lesser General Public License as published 12 by the Free Software Foundation; either version 2.1 of the License, 13 or (at your option) any later version. 14 15 PulseAudio is distributed in the hope that it will be useful, but 16 WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 General Public License for more details. 19 20 You should have received a copy of the GNU Lesser General Public License 21 along with PulseAudio; if not, see <http://www.gnu.org/licenses/>. 22 ***/ 23 24 #include <stdint.h> 25 #include <pulsecore/macro.h> 26 27 #ifndef PACKAGE 28 #error "Please include config.h before including this file!" 29 #endif 30 31 typedef enum pa_cpu_arm_flag { 32 PA_CPU_ARM_V6 = (1 << 0), 33 PA_CPU_ARM_V7 = (1 << 1), 34 PA_CPU_ARM_VFP = (1 << 2), 35 PA_CPU_ARM_EDSP = (1 << 3), 36 PA_CPU_ARM_NEON = (1 << 4), 37 PA_CPU_ARM_VFPV3 = (1 << 5), 38 PA_CPU_ARM_CORTEX_A8 = (1 << 6), 39 } pa_cpu_arm_flag_t; 40 41 void pa_cpu_get_arm_flags(pa_cpu_arm_flag_t *flags); 42 bool pa_cpu_init_arm(pa_cpu_arm_flag_t *flags); 43 44 /* some optimized functions */ 45 void pa_volume_func_init_arm(pa_cpu_arm_flag_t flags); 46 47 #ifdef HAVE_NEON 48 void pa_convert_func_init_neon(pa_cpu_arm_flag_t flags); 49 void pa_mix_func_init_neon(pa_cpu_arm_flag_t flags); 50 void pa_remap_func_init_neon(pa_cpu_arm_flag_t flags); 51 #endif 52 53 #endif /* foocpuarmhfoo */ 54