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 64 Uint32 a = (execKey >> 32) & 0x00000000FFFFFFFF;
65 Uint32 b = execKey & 0x00000000FFFFFFFF;
129 Uint32 *vp = (
void *)&value;
143 Uint32 *vp = (
void *)&value;
167 }
else if(pMin == pMax) {
174 return (
Sint32)((number % ((max + 1) - min)) + min);
209 if (boundary1 > boundary2) {
229 }
while (index < delta);
233 tempBuf[
index] = b1 + 1;
235 tempBuf[
index] = b2 - 1;
243 tempBuf[
index] = b1 - 1;
248 tempBuf[
index] = b2 + 1;
267 const Uint64 maxValue = UCHAR_MAX;
277 const Uint64 maxValue = USHRT_MAX;
287 #if ((ULONG_MAX) == (UINT_MAX)) 288 const Uint64 maxValue = ULONG_MAX;
290 const Uint64 maxValue = UINT_MAX;
301 const Uint64 maxValue = ULLONG_MAX;
341 if (boundary1 > boundary2) {
361 }
while (index < delta);
365 tempBuf[
index] = b1 + 1;
367 tempBuf[
index] = b2 - 1;
375 tempBuf[
index] = b1 - 1;
380 tempBuf[
index] = b2 + 1;
399 const Sint64 maxValue = SCHAR_MAX;
400 const Sint64 minValue = SCHAR_MIN;
410 const Sint64 maxValue = SHRT_MAX;
411 const Sint64 minValue = SHRT_MIN;
421 #if ((ULONG_MAX) == (UINT_MAX)) 422 const Sint64 maxValue = LONG_MAX;
423 const Sint64 minValue = LONG_MIN;
425 const Sint64 maxValue = INT_MAX;
426 const Sint64 minValue = INT_MIN;
437 const Sint64 maxValue = LLONG_MAX;
438 const Sint64 minValue = LLONG_MIN;
440 boundary1, boundary2,
470 }
while (s > DBL_EPSILON);
511 string = (
char *)
SDL_malloc((size + 1) *
sizeof(char));
Sint8 SDLTest_RandomSint8()
Uint32 SDLTest_RandomUint32()
Uint16 SDLTest_RandomUint16BoundaryValue(Uint16 boundary1, Uint16 boundary2, SDL_bool validDomain)
GLdouble GLdouble GLdouble r
GLsizei const GLchar *const * string
Uint8 SDLTest_RandomUint8BoundaryValue(Uint8 boundary1, Uint8 boundary2, SDL_bool validDomain)
double SDLTest_RandomDouble()
Uint8 SDLTest_RandomUint8()
char * SDLTest_RandomAsciiStringOfSize(int size)
Uint64 SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain)
uint32_t Uint32
An unsigned 32-bit integer type.
#define SDL_InvalidParamError(param)
uint64_t Uint64
An unsigned 64-bit integer type.
Sint32 SDLTest_RandomIntegerInRange(Sint32 pMin, Sint32 pMax)
void SDLTest_RandomInit(SDLTest_RandomContext *rndContext, unsigned int xi, unsigned int ci)
Initialize random number generator with two integers.
float SDLTest_RandomFloat()
Sint8 SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_bool validDomain)
GLsizei const GLfloat * value
int8_t Sint8
A signed 8-bit integer type.
uint8_t Uint8
An unsigned 8-bit integer type.
Uint64 SDLTest_GenerateUnsignedBoundaryValues(const Uint64 maxValue, Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain)
Uint64 SDLTest_RandomUint64()
Sint32 SDLTest_RandomSint32()
char * SDLTest_RandomAsciiString()
float SDLTest_RandomUnitFloat()
Sint16 SDLTest_RandomSint16()
void SDLTest_FuzzerInit(Uint64 execKey)
static SDLTest_RandomContext rndContext
double SDLTest_RandomUnitDouble()
static int fuzzerInvocationCounter
Sint32 SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 boundary2, SDL_bool validDomain)
Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL_bool validDomain)
#define SDLTest_RandomInt(c)
uint16_t Uint16
An unsigned 16-bit integer type.
Uint16 SDLTest_RandomUint16()
int64_t Sint64
A signed 64-bit integer type.
char * SDLTest_RandomAsciiStringWithMaximumLength(int maxLength)
Sint64 SDLTest_RandomSint64()
GLboolean GLboolean GLboolean GLboolean a
int SDLTest_GetFuzzerInvocationCount()
GLboolean GLboolean GLboolean b
Sint64 SDLTest_GenerateSignedBoundaryValues(const Sint64 minValue, const Sint64 maxValue, Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain)
#define SDL_Unsupported()
int16_t Sint16
A signed 16-bit integer type.
Uint32 SDLTest_RandomUint32BoundaryValue(Uint32 boundary1, Uint32 boundary2, SDL_bool validDomain)
Sint64 SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain)