MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / get_random_float

Function get_random_float

test_common/harness/conversions.cpp:1280–1284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1278}
1279
1280float get_random_float(float low, float high, MTdata d)
1281{
1282 float t = (float)((double)genrand_int32(d) / (double)0xFFFFFFFF);
1283 return (1.0f - t) * low + t * high;
1284}
1285
1286double get_random_double(double low, double high, MTdata d)
1287{

Callers 15

test_clamp.cppFile · 0.85
test_step_fnFunction · 0.85
test_binary_fnFunction · 0.85
test_unary_fnFunction · 0.85
test_smoothstep_fnFunction · 0.85
gen_input_dataFunction · 0.85
REGISTER_TESTFunction · 0.85
REGISTER_TESTFunction · 0.85
copy_partial_sizeFunction · 0.85
REGISTER_TESTFunction · 0.85
REGISTER_TESTFunction · 0.85
getNextFunction · 0.85

Calls 1

genrand_int32Function · 0.85

Tested by 15

test_step_fnFunction · 0.68
test_binary_fnFunction · 0.68
test_unary_fnFunction · 0.68
test_smoothstep_fnFunction · 0.68
gen_input_dataFunction · 0.68
REGISTER_TESTFunction · 0.68
REGISTER_TESTFunction · 0.68
generate_random_inputsFunction · 0.68
generate_rgbafp_imageFunction · 0.68
update_rgbafp_imageFunction · 0.68
REGISTER_TESTFunction · 0.68