28#include "SDL_config.h"
32#if defined(_MSC_VER) && _MSC_VER <= 1500
33#define UINT8_MAX _UI8_MAX
34#define UINT16_MAX _UI16_MAX
35#define UINT32_MAX _UI32_MAX
36#define INT64_MIN _I64_MIN
37#define INT64_MAX _I64_MAX
38#define UINT64_MAX _UI64_MAX
65 Uint32 a = (execKey >> 32) & 0x00000000FFFFFFFF;
66 Uint32 b = execKey & 0x00000000FFFFFFFF;
174 }
else if(pMin == pMax) {
181 return (
Sint32)((number % ((max + 1) - min)) + min);
216 if (boundary1 > boundary2) {
236 }
while (
index < delta);
240 tempBuf[
index] = b1 + 1;
242 tempBuf[
index] = b2 - 1;
250 tempBuf[
index] = b1 - 1;
255 tempBuf[
index] = b2 + 1;
274 const Uint64 maxValue = UCHAR_MAX;
284 const Uint64 maxValue = USHRT_MAX;
294 #if ((ULONG_MAX) == (UINT_MAX))
295 const Uint64 maxValue = ULONG_MAX;
297 const Uint64 maxValue = UINT_MAX;
348 if (boundary1 > boundary2) {
368 }
while (
index < delta);
372 tempBuf[
index] = b1 + 1;
374 tempBuf[
index] = b2 - 1;
382 tempBuf[
index] = b1 - 1;
387 tempBuf[
index] = b2 + 1;
406 const Sint64 maxValue = SCHAR_MAX;
407 const Sint64 minValue = SCHAR_MIN;
417 const Sint64 maxValue = SHRT_MAX;
418 const Sint64 minValue = SHRT_MIN;
428 #if ((ULONG_MAX) == (UINT_MAX))
429 const Sint64 maxValue = LONG_MAX;
430 const Sint64 minValue = LONG_MIN;
433 const Sint64 minValue = INT_MIN;
444 const Sint64 maxValue = INT64_MAX;
445 const Sint64 minValue = INT64_MIN;
447 boundary1, boundary2,
477 }
while (
s > DBL_EPSILON);
#define SDL_Unsupported()
#define SDL_InvalidParamError(param)
GLdouble GLdouble GLdouble r
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
GLsizei const GLfloat * value
GLsizei const GLchar *const * string
int SDLTest_GetFuzzerInvocationCount()
Sint8 SDLTest_RandomSint8BoundaryValue(Sint8 boundary1, Sint8 boundary2, SDL_bool validDomain)
Sint64 SDLTest_RandomSint64BoundaryValue(Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain)
Uint8 SDLTest_RandomUint8BoundaryValue(Uint8 boundary1, Uint8 boundary2, SDL_bool validDomain)
float SDLTest_RandomUnitFloat()
static Sint64 SDLTest_GenerateSignedBoundaryValues(const Sint64 minValue, const Sint64 maxValue, Sint64 boundary1, Sint64 boundary2, SDL_bool validDomain)
Uint16 SDLTest_RandomUint16BoundaryValue(Uint16 boundary1, Uint16 boundary2, SDL_bool validDomain)
Uint64 SDLTest_RandomUint64()
void SDLTest_FuzzerInit(Uint64 execKey)
Uint32 SDLTest_RandomUint32()
Sint32 SDLTest_RandomIntegerInRange(Sint32 pMin, Sint32 pMax)
Uint16 SDLTest_RandomUint16()
Uint32 SDLTest_RandomUint32BoundaryValue(Uint32 boundary1, Uint32 boundary2, SDL_bool validDomain)
static Uint64 SDLTest_GenerateUnsignedBoundaryValues(const Uint64 maxValue, Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain)
char * SDLTest_RandomAsciiStringOfSize(int size)
Sint32 SDLTest_RandomSint32BoundaryValue(Sint32 boundary1, Sint32 boundary2, SDL_bool validDomain)
char * SDLTest_RandomAsciiStringWithMaximumLength(int maxLength)
Uint64 SDLTest_RandomUint64BoundaryValue(Uint64 boundary1, Uint64 boundary2, SDL_bool validDomain)
static SDLTest_RandomContext rndContext
Sint32 SDLTest_RandomSint32()
float SDLTest_RandomFloat()
double SDLTest_RandomDouble()
Sint8 SDLTest_RandomSint8()
static int fuzzerInvocationCounter
Sint16 SDLTest_RandomSint16BoundaryValue(Sint16 boundary1, Sint16 boundary2, SDL_bool validDomain)
Sint16 SDLTest_RandomSint16()
Sint64 SDLTest_RandomSint64()
double SDLTest_RandomUnitDouble()
Uint8 SDLTest_RandomUint8()
char * SDLTest_RandomAsciiString()
#define SDLTest_RandomInt(c)
void SDLTest_RandomInit(SDLTest_RandomContext *rndContext, unsigned int xi, unsigned int ci)
Initialize random number generator with two integers.