include/SDL_cpuinfo.h
changeset 1426 ef9a9064bff2
parent 1402 d910939febfa
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4159 a1b03ba2fcd0
equal deleted inserted replaced
1425:aea151eb97b8 1426:ef9a9064bff2
    34 extern "C" {
    34 extern "C" {
    35 #endif
    35 #endif
    36 
    36 
    37 /* This function returns true if the CPU has the RDTSC instruction
    37 /* This function returns true if the CPU has the RDTSC instruction
    38  */
    38  */
    39 extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC();
    39 extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void);
    40 
    40 
    41 /* This function returns true if the CPU has MMX features
    41 /* This function returns true if the CPU has MMX features
    42  */
    42  */
    43 extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX();
    43 extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX(void);
    44 
    44 
    45 /* This function returns true if the CPU has MMX Ext. features
    45 /* This function returns true if the CPU has MMX Ext. features
    46  */
    46  */
    47 extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt();
    47 extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt(void);
    48 
    48 
    49 /* This function returns true if the CPU has 3DNow features
    49 /* This function returns true if the CPU has 3DNow features
    50  */
    50  */
    51 extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow();
    51 extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow(void);
    52 
    52 
    53 /* This function returns true if the CPU has 3DNow! Ext. features
    53 /* This function returns true if the CPU has 3DNow! Ext. features
    54  */
    54  */
    55 extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt();
    55 extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt(void);
    56 
    56 
    57 /* This function returns true if the CPU has SSE features
    57 /* This function returns true if the CPU has SSE features
    58  */
    58  */
    59 extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE();
    59 extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE(void);
    60 
    60 
    61 /* This function returns true if the CPU has SSE2 features
    61 /* This function returns true if the CPU has SSE2 features
    62  */
    62  */
    63 extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2();
    63 extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void);
    64 
    64 
    65 /* This function returns true if the CPU has AltiVec features
    65 /* This function returns true if the CPU has AltiVec features
    66  */
    66  */
    67 extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec();
    67 extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void);
    68 
    68 
    69 /* Ends C function definitions when using C++ */
    69 /* Ends C function definitions when using C++ */
    70 #ifdef __cplusplus
    70 #ifdef __cplusplus
    71 }
    71 }
    72 #endif
    72 #endif