mirror of
https://github.com/yawut/SDL.git
synced 2026-08-19 23:34:04 -05:00
*** empty log message ***
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user