31 #if defined(_MSC_VER) && _MSC_VER <= 1500
32 #define UINT8_MAX ~(Uint8)0
33 #define UINT16_MAX ~(Uint16)0
34 #define UINT32_MAX ~(Uint32)0
35 #define UINT64_MAX ~(Uint64)0
63 Uint32 a = (execKey >> 32) & 0x00000000FFFFFFFF;
64 Uint32 b = execKey & 0x00000000FFFFFFFF;
128 Uint32 *vp = (
void *)&value;
142 Uint32 *vp = (
void *)&value;
166 }
else if(pMin == pMax) {
173 return (
Sint32)((number % ((max + 1) - min)) + min);
208 if (boundary1 > boundary2) {
228 }
while (index < delta);
232 tempBuf[
index] = b1 + 1;
234 tempBuf[
index] = b2 - 1;
242 tempBuf[
index] = b1 - 1;
247 tempBuf[
index] = b2 + 1;
266 const Uint64 maxValue = UCHAR_MAX;
276 const Uint64 maxValue = USHRT_MAX;
286 #if ((ULONG_MAX) == (UINT_MAX))
287 const Uint64 maxValue = ULONG_MAX;
289 const Uint64 maxValue = UINT_MAX;
300 const Uint64 maxValue = ULLONG_MAX;
340 if (boundary1 > boundary2) {
360 }
while (index < delta);
364 tempBuf[
index] = b1 + 1;
366 tempBuf[
index] = b2 - 1;
374 tempBuf[
index] = b1 - 1;
379 tempBuf[
index] = b2 + 1;
398 const Sint64 maxValue = SCHAR_MAX;
399 const Sint64 minValue = SCHAR_MIN;
409 const Sint64 maxValue = SHRT_MAX;
410 const Sint64 minValue = SHRT_MIN;
420 #if ((ULONG_MAX) == (UINT_MAX))
421 const Sint64 maxValue = LONG_MAX;
422 const Sint64 minValue = LONG_MIN;
424 const Sint64 maxValue = INT_MAX;
425 const Sint64 minValue = INT_MIN;
436 const Sint64 maxValue = LLONG_MAX;
437 const Sint64 minValue = LLONG_MIN;
439 boundary1, boundary2,
469 }
while (s > DBL_EPSILON);
510 string = (
char *)
SDL_malloc((size + 1) *
sizeof(char));
Uint64 SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain)
int32_t Sint32
A signed 32-bit integer type.
Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max)
Sint32 SDLTest_RandomSint32()
Sint16 SDLTest_RandomSint16()
Uint32 SDLTest_RandomUint32BoundaryValue(Uint32 boundary1, Uint32 boundary2, SDL_bool validDomain)
GLboolean GLboolean GLboolean GLboolean a
#define SDL_InvalidParamError(param)
char * SDLTest_RandomAsciiString()
void SDLTest_RandomInit(SDLTest_RandomContext *rndContext, unsigned int xi, unsigned int ci)
Initialize random number generator with two integers.
uint32_t Uint32
An unsigned 32-bit integer type.
double SDLTest_RandomUnitDouble()
Uint8 SDLTest_RandomUint8()
Sint8 SDLTest_RandomSint8()
char * SDLTest_RandomAsciiStringOfSize(int size)
Uint32 SDLTest_RandomUint32()
char * SDLTest_RandomAsciiStringWithMaximumLength(int maxLength)
Uint16 SDLTest_RandomUint16BoundaryValue(Uint16 boundary1, Uint16 boundary2, SDL_bool validDomain)
Sint32 SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 boundary2, SDL_bool validDomain)
uint64_t Uint64
An unsigned 64-bit integer type.
Uint64 SDLTest_GenerateUnsignedBoundaryValues(const Uint64 maxValue, Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain)
DECLSPEC void *SDLCALL SDL_memset(void *dst, int c, size_t len)
Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL_bool validDomain)
DECLSPEC void *SDLCALL SDL_malloc(size_t size)
Uint16 SDLTest_RandomUint16()
static SDLTest_RandomContext rndContext
Sint64 SDLTest_RandomSint64()
static int fuzzerInvocationCounter
Sint8 SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_bool validDomain)
int SDLTest_GetFuzzerInvocationCount()
EGLSurface EGLint void ** value
Sint64 SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain)
uint8_t Uint8
An unsigned 8-bit integer type.
GLsizei const GLcharARB ** string
Uint64 SDLTest_RandomUint64()
float SDLTest_RandomFloat()
int16_t Sint16
A signed 16-bit integer type.
#define SDLTest_RandomInt(c)
float SDLTest_RandomUnitFloat()
GLdouble GLdouble GLdouble r
GLdouble GLdouble GLdouble b
uint16_t Uint16
An unsigned 16-bit integer type.
void SDLTest_FuzzerInit(Uint64 execKey)
Uint8 SDLTest_RandomUint8BoundaryValue(Uint8 boundary1, Uint8 boundary2, SDL_bool validDomain)
int64_t Sint64
A signed 64-bit integer type.
Sint64 SDLTest_GenerateSignedBoundaryValues(const Sint64 minValue, const Sint64 maxValue, Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain)
int8_t Sint8
A signed 8-bit integer type.
#define SDL_Unsupported()
double SDLTest_RandomDouble()