michael@0: //////////////////////////////////////////////////////////////////////////////// michael@0: /// michael@0: /// A header file for detecting the Intel MMX instructions set extension. michael@0: /// michael@0: /// Please see 'mmx_win.cpp', 'mmx_cpp.cpp' and 'mmx_non_x86.cpp' for the michael@0: /// routine implementations for x86 Windows, x86 gnu version and non-x86 michael@0: /// platforms, respectively. michael@0: /// michael@0: /// Author : Copyright (c) Olli Parviainen michael@0: /// Author e-mail : oparviai 'at' iki.fi michael@0: /// SoundTouch WWW: http://www.surina.net/soundtouch michael@0: /// michael@0: //////////////////////////////////////////////////////////////////////////////// michael@0: // michael@0: // Last changed : $Date: 2008-02-10 10:26:55 -0600 (Sun, 10 Feb 2008) $ michael@0: // File revision : $Revision: 4 $ michael@0: // michael@0: // $Id: cpu_detect.h 11 2008-02-10 16:26:55Z oparviai $ michael@0: // michael@0: //////////////////////////////////////////////////////////////////////////////// michael@0: // michael@0: // License : michael@0: // michael@0: // SoundTouch audio processing library michael@0: // Copyright (c) Olli Parviainen michael@0: // michael@0: // This library is free software; you can redistribute it and/or michael@0: // modify it under the terms of the GNU Lesser General Public michael@0: // License as published by the Free Software Foundation; either michael@0: // version 2.1 of the License, or (at your option) any later version. michael@0: // michael@0: // This library is distributed in the hope that it will be useful, michael@0: // but WITHOUT ANY WARRANTY; without even the implied warranty of michael@0: // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU michael@0: // Lesser General Public License for more details. michael@0: // michael@0: // You should have received a copy of the GNU Lesser General Public michael@0: // License along with this library; if not, write to the Free Software michael@0: // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA michael@0: // michael@0: //////////////////////////////////////////////////////////////////////////////// michael@0: michael@0: #ifndef _CPU_DETECT_H_ michael@0: #define _CPU_DETECT_H_ michael@0: michael@0: #include "STTypes.h" michael@0: michael@0: #define SUPPORT_MMX 0x0001 michael@0: #define SUPPORT_3DNOW 0x0002 michael@0: #define SUPPORT_ALTIVEC 0x0004 michael@0: #define SUPPORT_SSE 0x0008 michael@0: #define SUPPORT_SSE2 0x0010 michael@0: michael@0: /// Checks which instruction set extensions are supported by the CPU. michael@0: /// michael@0: /// \return A bitmask of supported extensions, see SUPPORT_... defines. michael@0: uint detectCPUextensions(void); michael@0: michael@0: /// Disables given set of instruction extensions. See SUPPORT_... defines. michael@0: void disableExtensions(uint wDisableMask); michael@0: michael@0: #endif // _CPU_DETECT_H_