00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 // 00015 // Last changed : $Date: 2006-03-16 05:00:28 -0500 (Thu, 16 Mar 2006) $ 00016 // File revision : $Revision: 9376 $ 00017 // 00018 // $Id: cpu_detect.h 9376 2006-03-16 10:00:28Z ijr $ 00019 // 00021 // 00022 // License : 00023 // 00024 // SoundTouch audio processing library 00025 // Copyright (c) Olli Parviainen 00026 // 00027 // This library is free software; you can redistribute it and/or 00028 // modify it under the terms of the GNU Lesser General Public 00029 // License as published by the Free Software Foundation; either 00030 // version 2.1 of the License, or (at your option) any later version. 00031 // 00032 // This library is distributed in the hope that it will be useful, 00033 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00034 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00035 // Lesser General Public License for more details. 00036 // 00037 // You should have received a copy of the GNU Lesser General Public 00038 // License along with this library; if not, write to the Free Software 00039 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00040 // 00042 00043 #ifndef _CPU_DETECT_H_ 00044 #define _CPU_DETECT_H_ 00045 00046 #include "STTypes.h" 00047 00048 #define MM_MMX 0x0001 /* standard MMX */ 00049 #define MM_3DNOW 0x0004 /* AMD 3DNOW */ 00050 #define MM_MMXEXT 0x0002 /* SSE integer functions or AMD MMX ext */ 00051 #define MM_SSE 0x0008 /* SSE functions */ 00052 #define MM_SSE2 0x0010 /* PIV SSE2 functions */ 00053 #define MM_3DNOWEXT 0x0020 /* AMD 3DNowExt */ 00054 00058 uint detectCPUextensions(void); 00059 00061 void disableExtensions(uint wDisableMask); 00062 00063 #endif // _CPU_DETECT_H_
1.5.5