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 206 of file testplatform.c.
Definition at line 23 of file testplatform.c.
Referenced by TestTypes().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 419 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 342 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 390 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 367 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 84 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(), SDL_COMPILE_TIME_ASSERT, SDL_Log, SDL_MAX_SINT16, SDL_MAX_SINT32, SDL_MAX_SINT64, SDL_MAX_SINT8, SDL_MAX_UINT16, SDL_MAX_UINT32, SDL_MAX_UINT64, SDL_MAX_UINT8, SDL_MIN_SINT16, SDL_MIN_SINT32, SDL_MIN_SINT64, SDL_MIN_SINT8, SDL_MIN_UINT16, SDL_MIN_UINT32, SDL_MIN_UINT64, and SDL_MIN_UINT8.
Referenced by main().
Definition at line 157 of file testplatform.c.
Definition at line 151 of file testplatform.c.
Definition at line 163 of file testplatform.c.
Definition at line 181 of file testplatform.c.
Definition at line 193 of file testplatform.c.
Definition at line 187 of file testplatform.c.
Definition at line 199 of file testplatform.c.
Definition at line 169 of file testplatform.c.
Definition at line 175 of file testplatform.c.
|
static |
Definition at line 216 of file testplatform.c.