media/libsoundtouch/src/cpu_detect.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 ////////////////////////////////////////////////////////////////////////////////
michael@0 2 ///
michael@0 3 /// A header file for detecting the Intel MMX instructions set extension.
michael@0 4 ///
michael@0 5 /// Please see 'mmx_win.cpp', 'mmx_cpp.cpp' and 'mmx_non_x86.cpp' for the
michael@0 6 /// routine implementations for x86 Windows, x86 gnu version and non-x86
michael@0 7 /// platforms, respectively.
michael@0 8 ///
michael@0 9 /// Author : Copyright (c) Olli Parviainen
michael@0 10 /// Author e-mail : oparviai 'at' iki.fi
michael@0 11 /// SoundTouch WWW: http://www.surina.net/soundtouch
michael@0 12 ///
michael@0 13 ////////////////////////////////////////////////////////////////////////////////
michael@0 14 //
michael@0 15 // Last changed : $Date: 2008-02-10 10:26:55 -0600 (Sun, 10 Feb 2008) $
michael@0 16 // File revision : $Revision: 4 $
michael@0 17 //
michael@0 18 // $Id: cpu_detect.h 11 2008-02-10 16:26:55Z oparviai $
michael@0 19 //
michael@0 20 ////////////////////////////////////////////////////////////////////////////////
michael@0 21 //
michael@0 22 // License :
michael@0 23 //
michael@0 24 // SoundTouch audio processing library
michael@0 25 // Copyright (c) Olli Parviainen
michael@0 26 //
michael@0 27 // This library is free software; you can redistribute it and/or
michael@0 28 // modify it under the terms of the GNU Lesser General Public
michael@0 29 // License as published by the Free Software Foundation; either
michael@0 30 // version 2.1 of the License, or (at your option) any later version.
michael@0 31 //
michael@0 32 // This library is distributed in the hope that it will be useful,
michael@0 33 // but WITHOUT ANY WARRANTY; without even the implied warranty of
michael@0 34 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
michael@0 35 // Lesser General Public License for more details.
michael@0 36 //
michael@0 37 // You should have received a copy of the GNU Lesser General Public
michael@0 38 // License along with this library; if not, write to the Free Software
michael@0 39 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
michael@0 40 //
michael@0 41 ////////////////////////////////////////////////////////////////////////////////
michael@0 42
michael@0 43 #ifndef _CPU_DETECT_H_
michael@0 44 #define _CPU_DETECT_H_
michael@0 45
michael@0 46 #include "STTypes.h"
michael@0 47
michael@0 48 #define SUPPORT_MMX 0x0001
michael@0 49 #define SUPPORT_3DNOW 0x0002
michael@0 50 #define SUPPORT_ALTIVEC 0x0004
michael@0 51 #define SUPPORT_SSE 0x0008
michael@0 52 #define SUPPORT_SSE2 0x0010
michael@0 53
michael@0 54 /// Checks which instruction set extensions are supported by the CPU.
michael@0 55 ///
michael@0 56 /// \return A bitmask of supported extensions, see SUPPORT_... defines.
michael@0 57 uint detectCPUextensions(void);
michael@0 58
michael@0 59 /// Disables given set of instruction extensions. See SUPPORT_... defines.
michael@0 60 void disableExtensions(uint wDisableMask);
michael@0 61
michael@0 62 #endif // _CPU_DETECT_H_

mercurial