SDL
2.0
|
Go to the source code of this file.
Data Structures | |
struct | LL_Test |
Typedefs | |
typedef int(* | LL_Intrinsic) (void *a, void *b, int arg, void *result, void *expected) |
Functions | |
static int | badsize (size_t sizeoftype, size_t hardcodetype) |
int | TestTypes (SDL_bool verbose) |
int | TestEndian (SDL_bool verbose) |
static int | TST_allmul (void *a, void *b, int arg, void *result, void *expected) |
static int | TST_alldiv (void *a, void *b, int arg, void *result, void *expected) |
static int | TST_allrem (void *a, void *b, int arg, void *result, void *expected) |
static int | TST_ualldiv (void *a, void *b, int arg, void *result, void *expected) |
static int | TST_uallrem (void *a, void *b, int arg, void *result, void *expected) |
static int | TST_allshl (void *a, void *b, int arg, void *result, void *expected) |
static int | TST_aullshl (void *a, void *b, int arg, void *result, void *expected) |
static int | TST_allshr (void *a, void *b, int arg, void *result, void *expected) |
static int | TST_aullshr (void *a, void *b, int arg, void *result, void *expected) |
int | Test64Bit (SDL_bool verbose) |
int | TestCPUInfo (SDL_bool verbose) |
int | TestAssertions (SDL_bool verbose) |
int | main (int argc, char *argv[]) |
Variables | |
static LL_Test | LL_Tests [] |
Definition at line 186 of file testplatform.c.
Definition at line 23 of file testplatform.c.
Referenced by TestTypes().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 399 of file testplatform.c.
References SDL_FALSE, SDL_GetPlatform, SDL_Log, SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_INFO, SDL_LogSetPriority, SDL_strcmp, SDL_TRUE, Test64Bit(), TestAssertions(), TestCPUInfo(), TestEndian(), and TestTypes().
int Test64Bit | ( | SDL_bool | verbose | ) |
Definition at line 322 of file testplatform.c.
References LL_Test::a, LL_Test::arg, LL_Test::b, LL_Test::expected_result, NULL, LL_Test::operation, LL_Test::routine, and SDL_Log.
Referenced by main().
int TestAssertions | ( | SDL_bool | verbose | ) |
Definition at line 370 of file testplatform.c.
References SDL_AssertData::always_ignore, SDL_AssertData::condition, SDL_AssertData::filename, SDL_AssertData::function, SDL_AssertData::linenum, SDL_AssertData::next, SDL_assert, SDL_assert_paranoid, SDL_assert_release, SDL_GetAssertionReport, SDL_Log, and SDL_AssertData::trigger_count.
Referenced by main().
int TestCPUInfo | ( | SDL_bool | verbose | ) |
Definition at line 347 of file testplatform.c.
References SDL_GetCPUCacheLineSize, SDL_GetCPUCount, SDL_GetSystemRAM, SDL_Has3DNow, SDL_HasAltiVec, SDL_HasAVX, SDL_HasAVX2, SDL_HasMMX, SDL_HasNEON, SDL_HasRDTSC, SDL_HasSSE, SDL_HasSSE2, SDL_HasSSE3, SDL_HasSSE41, SDL_HasSSE42, and SDL_Log.
Referenced by main().
int TestEndian | ( | SDL_bool | verbose | ) |
Definition at line 64 of file testplatform.c.
References SDL_BIG_ENDIAN, SDL_BYTEORDER, SDL_LIL_ENDIAN, SDL_Log, SDL_PRIX64, SDL_Swap16(), SDL_Swap32(), and SDL_Swap64().
Referenced by main().
int TestTypes | ( | SDL_bool | verbose | ) |
Definition at line 29 of file testplatform.c.
References badsize(), and SDL_Log.
Referenced by main().
Definition at line 137 of file testplatform.c.
Definition at line 131 of file testplatform.c.
Definition at line 143 of file testplatform.c.
Definition at line 161 of file testplatform.c.
Definition at line 173 of file testplatform.c.
Definition at line 167 of file testplatform.c.
Definition at line 179 of file testplatform.c.
Definition at line 149 of file testplatform.c.
Definition at line 155 of file testplatform.c.
|
static |
Definition at line 196 of file testplatform.c.