Improve testing of sub_group_ballot (#1382)

Signed-off-by: Stuart Brady <stuart.brady@arm.com>
This commit is contained in:
Stuart Brady
2022-01-28 09:15:44 +00:00
committed by GitHub
parent 656886030b
commit 60471a5208
4 changed files with 159 additions and 67 deletions

View File

@@ -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); }