/external/OpenCL-CTS/test_conformance/basic/ |
D | test_imagereadwrite3d.cpp | 156 ptr[i] = get_random_float(-0x40000000, 0x40000000, mtData); in generate_rgbafp_image() 173 p[indx+0] = get_random_float(-0x40000000, 0x40000000, mtData); in update_rgbafp_image() 174 p[indx+1] = get_random_float(-0x40000000, 0x40000000, mtData); in update_rgbafp_image() 175 p[indx+2] = get_random_float(-0x40000000, 0x40000000, mtData); in update_rgbafp_image() 176 p[indx+3] = get_random_float(-0x40000000, 0x40000000, mtData); in update_rgbafp_image() 262 int x = (int)get_random_float(0, (float)img_width - 1, mtData); in test_imagereadwrite3d() 263 int y = (int)get_random_float(0, (float)img_height - 1, mtData); in test_imagereadwrite3d() 264 int z = (int)get_random_float(0, (float)img_depth - 1, mtData); in test_imagereadwrite3d() 265 int w = (int)get_random_float(1, (float)(img_width - x), mtData); in test_imagereadwrite3d() 266 int h = (int)get_random_float(1, (float)(img_height - y), mtData); in test_imagereadwrite3d() [all …]
|
D | test_imagereadwrite.cpp | 150 ptr[i] = get_random_float(-0x40000000, 0x40000000, d); in generate_rgbafp_image() 165 p[indx+0] = get_random_float(-0x40000000, 0x40000000, d); in update_rgbafp_image() 166 p[indx+1] = get_random_float(-0x40000000, 0x40000000, d); in update_rgbafp_image() 167 p[indx+2] = get_random_float(-0x40000000, 0x40000000, d); in update_rgbafp_image() 168 p[indx+3] = get_random_float(-0x40000000, 0x40000000, d); in update_rgbafp_image() 257 int x = (int)get_random_float(0, img_width, d); in test_imagereadwrite() 258 int y = (int)get_random_float(0, img_height, d); in test_imagereadwrite() 259 int w = (int)get_random_float(1, (img_width - x), d); in test_imagereadwrite() 260 int h = (int)get_random_float(1, (img_height - y), d); in test_imagereadwrite()
|
D | test_imagerandomcopy.cpp | 94 ptr[i] = get_random_float(-0x40000000, 0x40000000, d); in generate_rgbafp_image() 202 x[0] = (int)get_random_float(0, img_width, d); in test_imagerandomcopy() 205 x[1] = (int)get_random_float(0, img_width, d); in test_imagerandomcopy() 208 y[0] = (int)get_random_float(0, img_height, d); in test_imagerandomcopy() 211 y[1] = (int)get_random_float(0, img_height, d); in test_imagerandomcopy()
|
D | test_fpmath_float.cpp | 175 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_fpmath_float() 178 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_fpmath_float() 181 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_fpmath_float()
|
D | test_fpmath_float4.cpp | 174 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_fpmath_float4() 177 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_fpmath_float4() 180 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_fpmath_float4()
|
D | test_fpmath_float2.cpp | 174 …p[i] = get_random_float(-MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31),… in test_fpmath_float2() 177 …p[i] = get_random_float(-MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31),… in test_fpmath_float2() 180 …p[i] = get_random_float(-MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT( 0x1.0p31f, 0x1, 31),… in test_fpmath_float2()
|
D | test_queue_priority.cpp | 254 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_queue_priority() 257 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_queue_priority() 260 …p[i] = get_random_float(-MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), MAKE_HEX_FLOAT(0x1.0p31f, 0x1, 31), d… in test_queue_priority()
|
D | test_loop.cpp | 115 loop_indx[i] = (int)get_random_float(0, num_elements-1, d); in test_loop() 116 loop_cnt[i] = (int)get_random_float(0, num_elements/32, d); in test_loop()
|
D | test_constant.cpp | 167 tmpI[i] = (int)get_random_float(-0x02000000, 0x02000000, d); in test_constant() 168 tmpF[i] = get_random_float(-0x02000000, 0x02000000, d); in test_constant()
|
/external/OpenCL-CTS/test_conformance/buffers/ |
D | test_buffer_fill.cpp | 746 (size_t)get_random_float(0.f, (float)(num_elements - 8), d); in test_buffer_fill_struct() 747 fill_elements = (size_t)get_random_float( in test_buffer_fill_struct() 753 pattern.b = (cl_float)get_random_float(-FLT_MAX, FLT_MAX, d); in test_buffer_fill_struct() 916 offset_elements = (size_t)get_random_float( 0.f, (float)(num_elements - 8), d ); in test_buffer_fill_int() 917 fill_elements = (size_t)get_random_float( 8.f, (float)(num_elements - offset_elements), d ); in test_buffer_fill_int() 981 offset_elements = (size_t)get_random_float( 0.f, (float)(num_elements - 8), d ); in test_buffer_fill_uint() 982 fill_elements = (size_t)get_random_float( 8.f, (float)(num_elements - offset_elements), d ); in test_buffer_fill_uint() 1046 offset_elements = (size_t)get_random_float( 0.f, (float)(num_elements - 8), d ); in test_buffer_fill_short() 1047 fill_elements = (size_t)get_random_float( 8.f, (float)(num_elements - offset_elements), d ); in test_buffer_fill_short() 1111 offset_elements = (size_t)get_random_float( 0.f, (float)(num_elements - 8), d ); in test_buffer_fill_ushort() [all …]
|
D | test_buffer_copy.cpp | 261 size = (int)get_random_float(2.f,131072.f, d); in test_buffer_copy() 283 srcStart = (cl_uint)get_random_float( 0.f, (float)(num_elements - 8), d ); in test_buffer_partial_copy() 284 size = (int)get_random_float( 8.f, (float)(num_elements - srcStart), d ); in test_buffer_partial_copy() 285 dstStart = (cl_uint)get_random_float( 0.f, (float)(num_elements - size), d ); in test_buffer_partial_copy()
|
/external/OpenCL-CTS/test_conformance/profiling/ |
D | copy.cpp | 272 outptr[i] = (int)get_random_float( -1.f, 1.f, d ); // seed with incorrect data in copy_partial_size() 396 size = (int)get_random_float(2.f,131072.f, d); in test_copy_array() 417 srcStart = (cl_uint)get_random_float( 0.f, (float)(num_elements - 8), d ); in test_copy_partial_array() 418 size = (int)get_random_float( 8.f, (float)(num_elements - srcStart), d ); in test_copy_partial_array() 419 dstStart = (cl_uint)get_random_float( 0.f, (float)(num_elements - size), d ); in test_copy_partial_array() 733 srcx = (size_t)get_random_float( 0.f, 248.f, d ); in test_copy_image() 734 srcy = (size_t)get_random_float( 0.f, 248.f, d ); in test_copy_image() 735 subw = (size_t)get_random_float( 8.f, (float)(256 - srcx), d ); in test_copy_image() 736 subh = (size_t)get_random_float( 8.f, (float)(256 - srcy), d ); in test_copy_image() 737 dstx = (size_t)get_random_float( 0.f, (float)(256 - subw), d ); in test_copy_image() [all …]
|
/external/OpenCL-CTS/test_conformance/commonfns/ |
D | test_smoothstepf.cpp | 130 p[i] = get_random_float(-0x00200000, 0x00200000, d); in test_smoothstepf() 140 edge1 = get_random_float( -0x00200000, 0x00200000, d); in test_smoothstepf() 150 p[i] = get_random_float(-0x00200000, 0x00200000, d); in test_smoothstepf()
|
D | test_smoothstep.cpp | 153 p[i] = get_random_float(-0x00400000, 0x00400000, d); in test_smoothstep() 163 edge1 = get_random_float(-0x00400000, 0x00400000, d); in test_smoothstep() 173 p[i] = get_random_float(-0x00400000, 0x00400000, d); in test_smoothstep()
|
D | test_clamp.cpp | 180 input_ptr[0][j] = get_random_float(-0x20000000, 0x20000000, d); in test_clamp() 181 input_ptr[1][j] = get_random_float(-0x20000000, 0x20000000, d); in test_clamp() 182 input_ptr[2][j] = get_random_float(input_ptr[1][j], 0x20000000, d); in test_clamp()
|
D | test_fmin.cpp | 138 p[i] = get_random_float(-0x20000000, 0x20000000, d); in test_fmin() 143 p[i] = get_random_float(-0x20000000, 0x20000000, d); in test_fmin()
|
D | test_fmax.cpp | 132 p[i] = get_random_float(-0x20000000, 0x20000000, d); in test_fmax() 137 p[i] = get_random_float(-0x20000000, 0x20000000,d ); in test_fmax()
|
D | test_fmaxf.cpp | 140 p[i] = get_random_float(-0x20000000, 0x20000000, d); in test_fmaxf() 145 p[i] = get_random_float(-0x20000000, 0x20000000, d); in test_fmaxf()
|
D | test_fminf.cpp | 133 p[i] = get_random_float(-0x20000000, 0x20000000, d); in test_fminf() 138 p[i] = get_random_float(-0x20000000, 0x20000000, d); in test_fminf()
|
D | test_binary_fn.cpp | 107 input_ptr[0][j] = get_random_float(-0x20000000, 0x20000000, d); in test_binary_fn() 108 input_ptr[1][j] = get_random_float(-0x20000000, 0x20000000, d); in test_binary_fn()
|
/external/OpenCL-CTS/test_conformance/thread_dimensions/ |
D | test_thread_dimensions.cpp | 624 …final_x_size = (int)get_random_float(0, (x_size/size_increase_per_iteration), d)+x_size/size_incre… in test_thread_dimensions() 625 …final_y_size = (int)get_random_float(0, (y_size/size_increase_per_iteration), d)+y_size/size_incre… in test_thread_dimensions() 626 …final_z_size = (int)get_random_float(0, (z_size/size_increase_per_iteration), d)+z_size/size_incre… in test_thread_dimensions() 660 local_x_size = (int)get_random_float(1, (int)max_workgroup_size, d); in test_thread_dimensions() 667 local_y_size = (int)get_random_float(1, (int)remainder, d); in test_thread_dimensions() 673 local_z_size = (int)get_random_float(1, (int)remainder, d); in test_thread_dimensions() 679 local_z_size = (int)get_random_float(1, (int)remainder, d); in test_thread_dimensions() 685 local_y_size = (int)get_random_float(1, (int)remainder, d); in test_thread_dimensions()
|
/external/OpenCL-CTS/test_conformance/geometrics/ |
D | test_geometrics.cpp | 186 inDataA[ i ] = get_random_float( -512.f, 512.f, seed ); in test_geom_cross() 187 inDataB[ i ] = get_random_float( -512.f, 512.f, seed ); in test_geom_cross() 344 inDataA[ i ] = get_random_float( -512.f, 512.f, d ); in test_twoToFloat_kernel() 345 inDataB[ i ] = get_random_float( -512.f, 512.f, d ); in test_twoToFloat_kernel() 355 inDataA[ i ] = get_random_float( -512.f, 512.f, d ); in test_twoToFloat_kernel() 357 inDataB[ i ] = get_random_float( -512.f, 512.f, d ); in test_twoToFloat_kernel() 660 inDataA[ i ] = get_random_float( -512.f, 512.f, d ); in test_oneToFloat_kernel() 670 inDataA[ i ] = get_random_float( -512.f, 512.f, d ); in test_oneToFloat_kernel() 875 …cl_float z = get_random_float( -MAKE_HEX_FLOAT( 0x1.0p60f, 1, 60), MAKE_HEX_FLOAT( 0x1.0p60f, 1, 6… in test_oneToOne_kernel()
|
/external/OpenCL-CTS/test_conformance/api/ |
D | test_kernel_arg_multi_setup.cpp | 266 type1 = (int)get_random_float(0,4, seed); in test_kernel_arg_multi_setup_random() 267 type2 = (int)get_random_float(0,4, seed); in test_kernel_arg_multi_setup_random() 268 type3 = (int)get_random_float(0,4, seed); in test_kernel_arg_multi_setup_random()
|
/external/OpenCL-CTS/test_conformance/workgroups/ |
D | test_wg_broadcast.cpp | 211 p[i] = get_random_float((float)(-100000.f * M_PI), (float)(100000.f * M_PI) ,d); in test_work_group_broadcast_1D() 340 p[i] = get_random_float((float)(-100000.f * M_PI), (float)(100000.f * M_PI) ,d); in test_work_group_broadcast_2D() 468 p[i] = get_random_float((float)(-100000.f * M_PI), (float)(100000.f * M_PI) ,d); in test_work_group_broadcast_3D()
|
/external/OpenCL-CTS/test_common/harness/ |
D | conversions.h | 84 extern float get_random_float(float low, float high, MTdata d);
|