\
return clrngLfsr113NextState(&stream->
current) * Lfsr113_NORM_##fptype; \
} \
\
cl_int clrngLfsr113RandomInteger_##fptype(
clrngLfsr113Stream* stream, cl_int i, cl_int j) { \
return i + (cl_int)((j - i + 1) * clrngLfsr113RandomU01_##fptype(stream)); \
} \
\
clrngStatus clrngLfsr113RandomU01Array_##fptype(
clrngLfsr113Stream* stream,
size_t count, fptype* buffer) { \
if (!stream) \
if (!buffer) \
for (size_t i = 0; i < count; i++) \
buffer[i] = clrngLfsr113RandomU01_##fptype(stream); \
} \
\
clrngStatus clrngLfsr113RandomIntegerArray_##fptype(
clrngLfsr113Stream* stream, cl_int i, cl_int j,
size_t count, cl_int* buffer) { \
if (!stream) \
if (!buffer) \
for (size_t k = 0; k < count; k++) \
buffer[k] = clrngLfsr113RandomInteger_##fptype(stream, i, j); \
}
clrngStatus clrngSetErrorString(cl_int err, const char *msg,...)
Set the current error string.
Definition: private.c:57
clrngLfsr113StreamState current
Definition: lfsr113.h:65