1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/media/libsoundtouch/src/cpu_detect.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,62 @@ 1.4 +//////////////////////////////////////////////////////////////////////////////// 1.5 +/// 1.6 +/// A header file for detecting the Intel MMX instructions set extension. 1.7 +/// 1.8 +/// Please see 'mmx_win.cpp', 'mmx_cpp.cpp' and 'mmx_non_x86.cpp' for the 1.9 +/// routine implementations for x86 Windows, x86 gnu version and non-x86 1.10 +/// platforms, respectively. 1.11 +/// 1.12 +/// Author : Copyright (c) Olli Parviainen 1.13 +/// Author e-mail : oparviai 'at' iki.fi 1.14 +/// SoundTouch WWW: http://www.surina.net/soundtouch 1.15 +/// 1.16 +//////////////////////////////////////////////////////////////////////////////// 1.17 +// 1.18 +// Last changed : $Date: 2008-02-10 10:26:55 -0600 (Sun, 10 Feb 2008) $ 1.19 +// File revision : $Revision: 4 $ 1.20 +// 1.21 +// $Id: cpu_detect.h 11 2008-02-10 16:26:55Z oparviai $ 1.22 +// 1.23 +//////////////////////////////////////////////////////////////////////////////// 1.24 +// 1.25 +// License : 1.26 +// 1.27 +// SoundTouch audio processing library 1.28 +// Copyright (c) Olli Parviainen 1.29 +// 1.30 +// This library is free software; you can redistribute it and/or 1.31 +// modify it under the terms of the GNU Lesser General Public 1.32 +// License as published by the Free Software Foundation; either 1.33 +// version 2.1 of the License, or (at your option) any later version. 1.34 +// 1.35 +// This library is distributed in the hope that it will be useful, 1.36 +// but WITHOUT ANY WARRANTY; without even the implied warranty of 1.37 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1.38 +// Lesser General Public License for more details. 1.39 +// 1.40 +// You should have received a copy of the GNU Lesser General Public 1.41 +// License along with this library; if not, write to the Free Software 1.42 +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 1.43 +// 1.44 +//////////////////////////////////////////////////////////////////////////////// 1.45 + 1.46 +#ifndef _CPU_DETECT_H_ 1.47 +#define _CPU_DETECT_H_ 1.48 + 1.49 +#include "STTypes.h" 1.50 + 1.51 +#define SUPPORT_MMX 0x0001 1.52 +#define SUPPORT_3DNOW 0x0002 1.53 +#define SUPPORT_ALTIVEC 0x0004 1.54 +#define SUPPORT_SSE 0x0008 1.55 +#define SUPPORT_SSE2 0x0010 1.56 + 1.57 +/// Checks which instruction set extensions are supported by the CPU. 1.58 +/// 1.59 +/// \return A bitmask of supported extensions, see SUPPORT_... defines. 1.60 +uint detectCPUextensions(void); 1.61 + 1.62 +/// Disables given set of instruction extensions. See SUPPORT_... defines. 1.63 +void disableExtensions(uint wDisableMask); 1.64 + 1.65 +#endif // _CPU_DETECT_H_