143 #define clrngLfsr113RandomU01 _CLRNG_TAG_FPTYPE(clrngLfsr113RandomU01) 144 #define clrngLfsr113RandomInteger _CLRNG_TAG_FPTYPE(clrngLfsr113RandomInteger) 145 #define clrngLfsr113RandomU01Array _CLRNG_TAG_FPTYPE(clrngLfsr113RandomU01Array) 146 #define clrngLfsr113RandomIntegerArray _CLRNG_TAG_FPTYPE(clrngLfsr113RandomIntegerArray) 209 #ifdef CLRNG_SINGLE_PRECISION 210 #define clrngLfsr113DeviceRandomU01Array(...) clrngLfsr113DeviceRandomU01Array_(__VA_ARGS__, CL_TRUE) 212 #define clrngLfsr113DeviceRandomU01Array(...) clrngLfsr113DeviceRandomU01Array_(__VA_ARGS__, CL_FALSE) 219 size_t numberCount, cl_mem outBuffer, cl_uint numQueuesAndEvents,
220 cl_command_queue* commQueues, cl_uint numWaitEvents,
221 const cl_event* waitEvents, cl_event* outEvents, cl_bool singlePrecision);
CLRNGAPI clrngStatus clrngLfsr113RewindStreamCreator(clrngLfsr113StreamCreator *creator)
Definition: lfsr113.c:121
Library definitions common to all RNG's.
CLRNGAPI clrngLfsr113StreamCreator * clrngLfsr113CopyStreamCreator(const clrngLfsr113StreamCreator *creator, clrngStatus *err)
Definition: lfsr113.c:90
CLRNGAPI clrngStatus clrngLfsr113SetBaseCreatorState(clrngLfsr113StreamCreator *creator, const clrngLfsr113StreamState *baseState)
Definition: lfsr113.c:129
CLRNGAPI cl_double clrngLfsr113RandomU01_cl_double(clrngLfsr113Stream *stream)
CLRNGAPI clrngStatus clrngLfsr113CreateOverStreams(clrngLfsr113StreamCreator *creator, size_t count, clrngLfsr113Stream *streams)
Definition: lfsr113.c:259
CLRNGAPI clrngLfsr113Stream * clrngLfsr113CreateStreams(clrngLfsr113StreamCreator *creator, size_t count, size_t *bufSize, clrngStatus *err)
Definition: lfsr113.c:274
enum clrngStatus_ clrngStatus
Error codes.
clrngLfsr113StreamState states[3]
Definition: lfsr113.h:62
CLRNGAPI clrngStatus clrngLfsr113MakeOverSubstreams(clrngLfsr113Stream *stream, size_t count, clrngLfsr113Stream *substreams)
Definition: device/lfsr113.c.h:259
CLRNGAPI clrngStatus clrngLfsr113ForwardToNextSubstreams(size_t count, clrngLfsr113Stream *streams)
Definition: device/lfsr113.c.h:245
#define clrngLfsr113RandomIntegerArray
Definition: lfsr113.h:146
CLRNGAPI clrngStatus clrngLfsr113WriteStreamInfo(const clrngLfsr113Stream *stream, FILE *file)
Definition: lfsr113.c:336
#define clrngLfsr113RandomInteger
Definition: lfsr113.h:144
#define clrngLfsr113RandomU01Array
Definition: lfsr113.h:145
CLRNGAPI clrngStatus clrngLfsr113RandomU01Array_cl_double(clrngLfsr113Stream *stream, size_t count, cl_double *buffer)
CLRNGAPI clrngStatus clrngLfsr113RewindStreams(size_t count, clrngLfsr113Stream *streams)
Definition: device/lfsr113.c.h:129
CLRNGAPI cl_float clrngLfsr113RandomU01_cl_float(clrngLfsr113Stream *stream)
CLRNGAPI clrngLfsr113Stream * clrngLfsr113MakeSubstreams(clrngLfsr113Stream *stream, size_t count, size_t *bufSize, clrngStatus *err)
Definition: lfsr113.c:313
CLRNGAPI clrngStatus clrngLfsr113DestroyStreams(clrngLfsr113Stream *streams)
Definition: lfsr113.c:177
CLRNGAPI cl_int clrngLfsr113RandomInteger_cl_double(clrngLfsr113Stream *stream, cl_int i, cl_int j)
CLRNGAPI clrngStatus clrngLfsr113DestroyStreamCreator(clrngLfsr113StreamCreator *creator)
Definition: lfsr113.c:114
clrngLfsr113StreamState initial
Definition: lfsr113.h:66
CLRNGAPI clrngLfsr113Stream * clrngLfsr113CopyStreams(size_t count, const clrngLfsr113Stream *streams, clrngStatus *err)
Definition: lfsr113.c:292
CLRNGAPI clrngLfsr113Stream * clrngLfsr113AllocStreams(size_t count, size_t *bufSize, clrngStatus *err)
Definition: lfsr113.c:152
#define clrngLfsr113RandomU01
Definition: lfsr113.h:143
#define _CLRNG_FPTYPE
Definition: clRNG.h:314
CLRNGAPI clrngStatus clrngLfsr113RewindSubstreams(size_t count, clrngLfsr113Stream *streams)
Definition: device/lfsr113.c.h:151
CLRNGAPI clrngStatus clrngLfsr113DeviceRandomU01Array_(size_t streamCount, cl_mem streams, size_t numberCount, cl_mem outBuffer, cl_uint numQueuesAndEvents, cl_command_queue *commQueues, cl_uint numWaitEvents, const cl_event *waitEvents, cl_event *outEvents, cl_bool singlePrecision)
Definition: lfsr113.c:361
CLRNGAPI clrngStatus clrngLfsr113RandomU01Array_cl_float(clrngLfsr113Stream *stream, size_t count, cl_float *buffer)
CLRNGAPI clrngStatus clrngLfsr113ChangeStreamsSpacing(clrngLfsr113StreamCreator *creator, cl_int e, cl_int c)
Definition: lfsr113.c:147
CLRNGAPI clrngStatus clrngLfsr113RandomIntegerArray_cl_float(clrngLfsr113Stream *stream, cl_int i, cl_int j, size_t count, cl_int *buffer)
#define CLRNGAPI
Definition: clRNG.h:326
CLRNGAPI clrngStatus clrngLfsr113CopyOverStreams(size_t count, clrngLfsr113Stream *destStreams, const clrngLfsr113Stream *srcStreams)
Definition: device/lfsr113.c.h:45
clrngLfsr113StreamState substream
Definition: lfsr113.h:67
CLRNGAPI clrngStatus clrngLfsr113RandomIntegerArray_cl_double(clrngLfsr113Stream *stream, cl_int i, cl_int j, size_t count, cl_int *buffer)
CLRNGAPI cl_int clrngLfsr113RandomInteger_cl_float(clrngLfsr113Stream *stream, cl_int i, cl_int j)
clrngLfsr113StreamState current
Definition: lfsr113.h:65
CLRNGAPI clrngStatus clrngLfsr113AdvanceStreams(size_t count, clrngLfsr113Stream *streams, cl_int e, cl_int c)
Definition: lfsr113.c:331