parent
69aede6c9e
commit
78be9eaf38
|
@ -174,7 +174,6 @@ elseif(HAVE_X11)
|
||||||
target_link_libraries(testnative PRIVATE X11)
|
target_link_libraries(testnative PRIVATE X11)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_sdl_test_executable(testcpuinfo testcpuinfo.c)
|
|
||||||
add_sdl_test_executable(testoverlay NEEDS_RESOURCES TESTUTILS testoverlay.c)
|
add_sdl_test_executable(testoverlay NEEDS_RESOURCES TESTUTILS testoverlay.c)
|
||||||
add_sdl_test_executable(testplatform NONINTERACTIVE testplatform.c)
|
add_sdl_test_executable(testplatform NONINTERACTIVE testplatform.c)
|
||||||
add_sdl_test_executable(testpower NONINTERACTIVE testpower.c)
|
add_sdl_test_executable(testpower NONINTERACTIVE testpower.c)
|
||||||
|
|
|
@ -1,30 +0,0 @@
|
||||||
#include <SDL3/SDL.h>
|
|
||||||
#include <SDL3/SDL_main.h>
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
|
||||||
{
|
|
||||||
(void)argc;
|
|
||||||
(void)argv;
|
|
||||||
|
|
||||||
printf(" CPU count : %d\n", SDL_GetCPUCount());
|
|
||||||
printf("CacheLine size : %d\n", SDL_GetCPUCacheLineSize());
|
|
||||||
printf(" RDTSC : %d\n", SDL_HasRDTSC());
|
|
||||||
printf(" Altivec : %d\n", SDL_HasAltiVec());
|
|
||||||
printf(" MMX : %d\n", SDL_HasMMX());
|
|
||||||
printf(" SSE : %d\n", SDL_HasSSE());
|
|
||||||
printf(" SSE2 : %d\n", SDL_HasSSE2());
|
|
||||||
printf(" SSE3 : %d\n", SDL_HasSSE3());
|
|
||||||
printf(" SSE4.1 : %d\n", SDL_HasSSE41());
|
|
||||||
printf(" SSE4.2 : %d\n", SDL_HasSSE42());
|
|
||||||
printf(" AVX : %d\n", SDL_HasAVX());
|
|
||||||
printf(" AVX2 : %d\n", SDL_HasAVX2());
|
|
||||||
printf(" AVX-512F : %d\n", SDL_HasAVX512F());
|
|
||||||
printf(" ARM SIMD : %d\n", SDL_HasARMSIMD());
|
|
||||||
printf(" NEON : %d\n", SDL_HasNEON());
|
|
||||||
printf(" LSX : %d\n", SDL_HasLSX());
|
|
||||||
printf(" LASX : %d\n", SDL_HasLASX());
|
|
||||||
printf(" RAM : %d MB\n", SDL_GetSystemRAM());
|
|
||||||
return 0;
|
|
||||||
}
|
|
Loading…
Reference in New Issue