include/SDL_cpuinfo.h
changeset 1895 c121d94672cb
parent 1426 ef9a9064bff2
child 2859 99210400e8b9
equal deleted inserted replaced
1894:c69cee13dd76 1895:c121d94672cb
    18 
    18 
    19     Sam Lantinga
    19     Sam Lantinga
    20     slouken@libsdl.org
    20     slouken@libsdl.org
    21 */
    21 */
    22 
    22 
    23 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
    23 /**
    24 /* CPU feature detection for SDL                                       */
    24  * \file SDL_cpuinfo.h
       
    25  *
       
    26  * CPU feature detection for SDL
       
    27  */
    25 
    28 
    26 #ifndef _SDL_cpuinfo_h
    29 #ifndef _SDL_cpuinfo_h
    27 #define _SDL_cpuinfo_h
    30 #define _SDL_cpuinfo_h
    28 
    31 
    29 #include "SDL_stdinc.h"
    32 #include "SDL_stdinc.h"
    30 
    33 
    31 #include "begin_code.h"
    34 #include "begin_code.h"
    32 /* Set up for C function definitions, even when using C++ */
    35 /* Set up for C function definitions, even when using C++ */
    33 #ifdef __cplusplus
    36 #ifdef __cplusplus
       
    37 /* *INDENT-OFF* */
    34 extern "C" {
    38 extern "C" {
       
    39 /* *INDENT-ON* */
    35 #endif
    40 #endif
    36 
    41 
    37 /* This function returns true if the CPU has the RDTSC instruction
    42 /* This function returns true if the CPU has the RDTSC instruction
    38  */
    43  */
    39 extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void);
    44 extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void);
    66  */
    71  */
    67 extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void);
    72 extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void);
    68 
    73 
    69 /* Ends C function definitions when using C++ */
    74 /* Ends C function definitions when using C++ */
    70 #ifdef __cplusplus
    75 #ifdef __cplusplus
       
    76 /* *INDENT-OFF* */
    71 }
    77 }
       
    78 /* *INDENT-ON* */
    72 #endif
    79 #endif
    73 #include "close_code.h"
    80 #include "close_code.h"
    74 
    81 
    75 #endif /* _SDL_cpuinfo_h */
    82 #endif /* _SDL_cpuinfo_h */
       
    83 
       
    84 /* vi: set ts=4 sw=4 expandtab: */