include/SDL_cpuinfo.h
author Sam Lantinga <slouken@libsdl.org>
Fri, 20 Aug 2004 22:32:05 +0000
changeset 932 66761191fc11
parent 785 ca06a994f03c
child 1312 c9b51268668f
permissions -rw-r--r--
Use the canonical glext.h on MacOS X as well (#define NO_SDL_GLEXT if you don't want this)
slouken@739
     1
/*
slouken@739
     2
    SDL - Simple DirectMedia Layer
slouken@769
     3
    Copyright (C) 1997-2004 Sam Lantinga
slouken@739
     4
slouken@739
     5
    This library is free software; you can redistribute it and/or
slouken@739
     6
    modify it under the terms of the GNU Library General Public
slouken@739
     7
    License as published by the Free Software Foundation; either
slouken@739
     8
    version 2 of the License, or (at your option) any later version.
slouken@739
     9
slouken@739
    10
    This library is distributed in the hope that it will be useful,
slouken@739
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
slouken@739
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
slouken@739
    13
    Library General Public License for more details.
slouken@739
    14
slouken@739
    15
    You should have received a copy of the GNU Library General Public
slouken@739
    16
    License along with this library; if not, write to the Free
slouken@739
    17
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
slouken@739
    18
slouken@739
    19
    Sam Lantinga
slouken@739
    20
    slouken@libsdl.org
slouken@739
    21
*/
slouken@739
    22
slouken@739
    23
#ifdef SAVE_RCSID
slouken@739
    24
static char rcsid =
slouken@739
    25
 "@(#) $Id$";
slouken@739
    26
#endif
slouken@739
    27
slouken@739
    28
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
slouken@739
    29
/* CPU feature detection for SDL                                       */
slouken@739
    30
slouken@739
    31
#ifndef _SDL_cpuinfo_h
slouken@739
    32
#define _SDL_cpuinfo_h
slouken@739
    33
slouken@739
    34
#include "begin_code.h"
slouken@739
    35
/* Set up for C function definitions, even when using C++ */
slouken@739
    36
#ifdef __cplusplus
slouken@739
    37
extern "C" {
slouken@739
    38
#endif
slouken@739
    39
slouken@745
    40
/* This function returns true if the CPU has the RDTSC instruction
slouken@745
    41
 */
slouken@745
    42
extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC();
slouken@745
    43
slouken@739
    44
/* This function returns true if the CPU has MMX features
slouken@739
    45
 */
slouken@739
    46
extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX();
slouken@739
    47
slouken@785
    48
/* This function returns true if the CPU has MMX Ext. features
slouken@785
    49
 */
slouken@785
    50
extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt();
slouken@785
    51
slouken@739
    52
/* This function returns true if the CPU has 3DNow features
slouken@739
    53
 */
slouken@739
    54
extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow();
slouken@739
    55
slouken@785
    56
/* This function returns true if the CPU has 3DNow! Ext. features
slouken@785
    57
 */
slouken@785
    58
extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt();
slouken@785
    59
slouken@739
    60
/* This function returns true if the CPU has SSE features
slouken@739
    61
 */
slouken@739
    62
extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE();
slouken@739
    63
slouken@785
    64
/* This function returns true if the CPU has SSE2 features
slouken@785
    65
 */
slouken@785
    66
extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2();
slouken@785
    67
slouken@778
    68
/* This function returns true if the CPU has AltiVec features
slouken@778
    69
 */
slouken@778
    70
extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec();
slouken@778
    71
slouken@739
    72
/* Ends C function definitions when using C++ */
slouken@739
    73
#ifdef __cplusplus
slouken@739
    74
}
slouken@739
    75
#endif
slouken@739
    76
#include "close_code.h"
slouken@739
    77
slouken@739
    78
#endif /* _SDL_cpuinfo_h */