mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-23 07:39:01 +00:00
Improve testing of sub_group_ballot (#1382)
Signed-off-by: Stuart Brady <stuart.brady@arm.com>
This commit is contained in:
@@ -277,3 +277,5 @@ double genrand_res53(MTdata d)
|
||||
unsigned long a = genrand_int32(d) >> 5, b = genrand_int32(d) >> 6;
|
||||
return (a * 67108864.0 + b) * (1.0 / 9007199254740992.0);
|
||||
}
|
||||
|
||||
bool genrand_bool(MTdata d) { return ((cl_uint)genrand_int32(d) & 1); }
|
||||
|
||||
@@ -90,6 +90,9 @@ double genrand_res53(MTdata /*data*/);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
/* generates a random boolean */
|
||||
bool genrand_bool(MTdata /*data*/);
|
||||
|
||||
#include <cassert>
|
||||
|
||||
struct MTdataHolder
|
||||
|
||||
Reference in New Issue
Block a user