mirror of
https://github.com/yawut/SDL.git
synced 2026-07-30 23:17:23 -05:00
*** empty log message ***
This commit is contained in:
parent
4c4d46200c
commit
5d51c784d3
|
|
@ -301,6 +301,14 @@ SDL_bool SDL_HasMMX()
|
|||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
SDL_bool SDL_HasMMXExt()
|
||||
{
|
||||
if ( SDL_GetCPUFeatures() & CPU_HAS_MMXEXT ) {
|
||||
return SDL_TRUE;
|
||||
}
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
SDL_bool SDL_Has3DNow()
|
||||
{
|
||||
if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOW ) {
|
||||
|
|
@ -309,6 +317,14 @@ SDL_bool SDL_Has3DNow()
|
|||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
SDL_bool SDL_Has3DNowExt()
|
||||
{
|
||||
if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOWEXT ) {
|
||||
return SDL_TRUE;
|
||||
}
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
SDL_bool SDL_HasSSE()
|
||||
{
|
||||
if ( SDL_GetCPUFeatures() & CPU_HAS_SSE ) {
|
||||
|
|
@ -317,6 +333,14 @@ SDL_bool SDL_HasSSE()
|
|||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
SDL_bool SDL_HasSSE2()
|
||||
{
|
||||
if ( SDL_GetCPUFeatures() & CPU_HAS_SSE2 ) {
|
||||
return SDL_TRUE;
|
||||
}
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
SDL_bool SDL_HasAltiVec()
|
||||
{
|
||||
if ( SDL_GetCPUFeatures() & CPU_HAS_ALTIVEC ) {
|
||||
|
|
@ -325,30 +349,6 @@ SDL_bool SDL_HasAltiVec()
|
|||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
SDL_bool SDL_HasMMXExt()
|
||||
{
|
||||
if ( SDL_GetCPUFeatures() & CPU_HAS_MMXEXT ) {
|
||||
return SDL_TRUE;
|
||||
}
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
SDL_bool SDL_Has3DNowExt()
|
||||
{
|
||||
if ( SDL_GetCPUFeatures() & CPU_HAS_3DNOWEXT ) {
|
||||
return SDL_TRUE;
|
||||
}
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
SDL_bool SDL_HasSSE2()
|
||||
{
|
||||
if ( SDL_GetCPUFeatures() & CPU_HAS_SSE2 ) {
|
||||
return SDL_TRUE;
|
||||
}
|
||||
return SDL_FALSE;
|
||||
}
|
||||
|
||||
#ifdef TEST_MAIN
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user