00001 /* 00002 SDL - Simple DirectMedia Layer 00003 Copyright (C) 1997-2009 Sam Lantinga 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Lesser General Public 00007 License as published by the Free Software Foundation; either 00008 version 2.1 of the License, or (at your option) any later version. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Lesser General Public License for more details. 00014 00015 You should have received a copy of the GNU Lesser General Public 00016 License along with this library; if not, write to the Free Software 00017 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00018 00019 Sam Lantinga 00020 slouken@libsdl.org 00021 */ 00022 00029 #ifndef _SDL_cpuinfo_h 00030 #define _SDL_cpuinfo_h 00031 00032 #include "SDL_stdinc.h" 00033 00034 #include "begin_code.h" 00035 /* Set up for C function definitions, even when using C++ */ 00036 #ifdef __cplusplus 00037 /* *INDENT-OFF* */ 00038 extern "C" { 00039 /* *INDENT-ON* */ 00040 #endif 00041 00042 /* This function returns true if the CPU has the RDTSC instruction 00043 */ 00044 extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void); 00045 00046 /* This function returns true if the CPU has MMX features 00047 */ 00048 extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX(void); 00049 00050 /* This function returns true if the CPU has MMX Ext. features 00051 */ 00052 extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt(void); 00053 00054 /* This function returns true if the CPU has 3DNow features 00055 */ 00056 extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow(void); 00057 00058 /* This function returns true if the CPU has 3DNow! Ext. features 00059 */ 00060 extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt(void); 00061 00062 /* This function returns true if the CPU has SSE features 00063 */ 00064 extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE(void); 00065 00066 /* This function returns true if the CPU has SSE2 features 00067 */ 00068 extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void); 00069 00070 /* This function returns true if the CPU has AltiVec features 00071 */ 00072 extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void); 00073 00074 /* Ends C function definitions when using C++ */ 00075 #ifdef __cplusplus 00076 /* *INDENT-OFF* */ 00077 } 00078 /* *INDENT-ON* */ 00079 #endif 00080 #include "close_code.h" 00081 00082 #endif /* _SDL_cpuinfo_h */ 00083 00084 /* vi: set ts=4 sw=4 expandtab: */