/external/OpenCL-CTS/test_conformance/basic/ |
D | test_imagereadwrite.cpp | 34 ptr[i] = (unsigned char)genrand_int32(d); in generate_rgba8_image() 49 p[indx+0] = (unsigned char)genrand_int32(d); in update_rgba8_image() 50 p[indx+1] = (unsigned char)genrand_int32(d); in update_rgba8_image() 51 p[indx+2] = (unsigned char)genrand_int32(d); in update_rgba8_image() 52 p[indx+3] = (unsigned char)genrand_int32(d); in update_rgba8_image() 102 ptr[i] = (unsigned short)genrand_int32(d); in generate_rgba16_image() 117 p[indx+0] = (unsigned short)genrand_int32(d); in update_rgba16_image() 118 p[indx+1] = (unsigned short)genrand_int32(d); in update_rgba16_image() 119 p[indx+2] = (unsigned short)genrand_int32(d); in update_rgba16_image() 120 p[indx+3] = (unsigned short)genrand_int32(d); in update_rgba16_image() [all …]
|
D | test_imagereadwrite3d.cpp | 34 ptr[i] = (unsigned char)genrand_int32(mtData); in generate_rgba8_image() 51 p[indx+0] = (unsigned char)genrand_int32(mtData); in update_rgba8_image() 52 p[indx+1] = (unsigned char)genrand_int32(mtData); in update_rgba8_image() 53 p[indx+2] = (unsigned char)genrand_int32(mtData); in update_rgba8_image() 54 p[indx+3] = (unsigned char)genrand_int32(mtData); in update_rgba8_image() 106 ptr[i] = (unsigned short)genrand_int32(mtData); in generate_rgba16_image() 123 p[indx+0] = (unsigned short)genrand_int32(mtData); in update_rgba16_image() 124 p[indx+1] = (unsigned short)genrand_int32(mtData); in update_rgba16_image() 125 p[indx+2] = (unsigned short)genrand_int32(mtData); in update_rgba16_image() 126 p[indx+3] = (unsigned short)genrand_int32(mtData); in update_rgba16_image() [all …]
|
D | test_arrayreadwrite.cpp | 44 inptr[i] = (cl_uint)(genrand_int32(d) & 0x7FFFFFFF); in test_arrayreadwrite() 56 offset = (int)(genrand_int32(d) & 0x7FFFFFFF); in test_arrayreadwrite() 60 cb = (int)(genrand_int32(d) & 0x7FFFFFFF); in test_arrayreadwrite()
|
D | test_arraycopy.cpp | 65 input_ptr[i] = (cl_uint)(genrand_int32(d) & 0x7FFFFFFF); in test_arraycopy() 106 input_ptr[i] = (cl_uint)(genrand_int32(d) & 0x7FFFFFFF); in test_arraycopy() 149 input_ptr[i] = (cl_uint)(genrand_int32(d) & 0x7FFFFFFF); in test_arraycopy()
|
D | test_multireadimagemultifmt.cpp | 53 ptr[i] = (unsigned char)genrand_int32(d); in generate_8888_image() 65 ptr[i] = (unsigned short)genrand_int32(d); in generate_16bit_image()
|
/external/OpenCL-CTS/test_common/harness/ |
D | mt19937.cpp | 105 cl_uint genrand_int32(MTdata d) in genrand_int32() function 250 return ((cl_ulong)genrand_int32(d) << 32) | (cl_uint)genrand_int32(d); in genrand_int64() 256 return genrand_int32(d) * (1.0 / 4294967295.0); in genrand_real1() 263 return genrand_int32(d) * (1.0 / 4294967296.0); in genrand_real2() 270 return (((double)genrand_int32(d)) + 0.5) * (1.0 / 4294967296.0); in genrand_real3() 277 unsigned long a = genrand_int32(d) >> 5, b = genrand_int32(d) >> 6; in genrand_res53()
|
D | conversions.cpp | 921 cl_uint bits = genrand_int32(d); in generate_random_data() 932 bits = genrand_int32(d); in generate_random_data() 947 bits = genrand_int32(d); in generate_random_data() 963 bits = genrand_int32(d); in generate_random_data() 978 bits = genrand_int32(d); in generate_random_data() 994 bits = genrand_int32(d); in generate_random_data() 1007 intPtr[i] = (cl_int)genrand_int32(d); in generate_random_data() 1016 uintPtr[i] = (unsigned int)genrand_int32(d); in generate_random_data() 1024 longPtr[i] = (cl_long)genrand_int32(d) in generate_random_data() 1025 | ((cl_long)genrand_int32(d) << 32); in generate_random_data() [all …]
|
D | test_mt19937.c | 32 cl_uint u = genrand_int32(d); in main()
|
D | mt19937.h | 73 cl_uint genrand_int32(MTdata /*data*/);
|
/external/OpenCL-CTS/test_conformance/spirv_new/ |
D | types.hpp | 115 return (cl_half)(genrand_int32(seed) % 2048); in genrandReal() 126 return genrand_int32(seed); in genrand() 131 return genrand_int32(seed); in genrand() 136 return genrand_int32(seed); in genrand() 144 res.s[i] = (T)genrand_int32(seed); \
|
/external/OpenCL-CTS/test_conformance/integer_ops/ |
D | main.cpp | 198 int a = (int)genrand_int32(d); in fill_test_values() 199 int b = (int)genrand_int32(d); in fill_test_values() 202 a = (int)genrand_int32(d); in fill_test_values() 203 b = (int)genrand_int32(d); in fill_test_values()
|
D | verification_and_generation_functions.cpp | 269 cl_uint a = (cl_uint)genrand_int32(d); in init_long_data() 270 cl_uint b = (cl_uint)genrand_int32(d); in init_long_data() 275 cl_uint a = (cl_uint)genrand_int32(d); in init_long_data() 276 cl_uint b = (cl_uint)genrand_int32(d); in init_long_data() 467 cl_ulong a = genrand_int32(d); in init_ulong_data() 468 cl_ulong b = genrand_int32(d); in init_ulong_data() 475 cl_ulong a = genrand_int32(d); in init_ulong_data() 476 cl_ulong b = genrand_int32(d); in init_ulong_data() 662 ((cl_int *)input_ptr[0])[j] = (cl_int)genrand_int32(d); in init_int_data() 663 ((cl_int *)input_ptr[1])[j] = (cl_int)genrand_int32(d); in init_int_data() [all …]
|
/external/OpenCL-CTS/test_conformance/gl/ |
D | test_buffers.cpp | 37 ptr[ i ] = (cl_##type)( ( genrand_int32(d) & range ) - offset ); \ 52 boolPtr[i] = ( genrand_int32(d) & 1 ) ? true : false; in gen_input_data() 69 longPtr[i] = (cl_long)genrand_int32(d) | ( (cl_ulong)genrand_int32(d) << 32 ); in gen_input_data() 79 ulongPtr[i] = (cl_ulong)genrand_int32(d) | ( (cl_ulong)genrand_int32(d) << 32 ); in gen_input_data()
|
/external/OpenCL-CTS/test_conformance/buffers/ |
D | test_buffer_write.cpp | 843 inptr[i][j].a = (int)genrand_int32(d); in test_buffer_write_struct() 1124 inptr[i][j] = (int)genrand_int32(d); in test_buffer_write_int() 1163 inptr[i][j] = genrand_int32(d); in test_buffer_write_uint() 1202 inptr[i][j] = (cl_short)genrand_int32(d); in test_buffer_write_short() 1242 inptr[i][j] = (cl_ushort)genrand_int32(d); in test_buffer_write_ushort() 1282 inptr[i][j] = (char)genrand_int32(d); in test_buffer_write_char() 1322 inptr[i][j] = (uchar)genrand_int32(d); in test_buffer_write_uchar() 1450 inptr[i][j] = (cl_long) genrand_int32(d) ^ ((cl_long) genrand_int32(d) << 32); in test_buffer_write_long() 1495 inptr[i][j] = (cl_ulong) genrand_int32(d) | ((cl_ulong) genrand_int32(d) << 32); in test_buffer_write_ulong() 1596 inptr[i][j] = (int)genrand_int32(d); in test_buffer_write_async_int() [all …]
|
D | test_buffer_migrate.cpp | 57 j = genrand_int32(d) % num_devices; in migrateMemObject() 70 …flags[i] = (cl_mem_migration_flags)(genrand_int32(d) & (CL_MIGRATE_MEM_OBJECT_HOST | CL_MIGRATE_ME… in migrateMemObject() 154 A[i] = genrand_int32(d); in test_buffer_migrate() 155 B[i] = genrand_int32(d); in test_buffer_migrate()
|
D | test_image_migrate.cpp | 68 j = genrand_int32(d) % num_devices; in migrateMemObject() 81 …flags[i] = (cl_mem_migration_flags)(genrand_int32(d) & (CL_MIGRATE_MEM_OBJECT_HOST | CL_MIGRATE_ME… in migrateMemObject() 182 A[i] = genrand_int32(d); in test_image_migrate() 183 B[i] = genrand_int32(d); in test_image_migrate()
|
/external/OpenCL-CTS/test_conformance/gles/ |
D | test_buffers.cpp | 40 ptr[ i ] = (cl_##type)( ( genrand_int32(d) & range ) - offset ); \ 55 boolPtr[i] = ( genrand_int32(d) & 1 ) ? true : false; in gen_input_data() 72 longPtr[i] = (cl_long)genrand_int32(d) | ( (cl_ulong)genrand_int32(d) << 32 ); in gen_input_data() 82 ulongPtr[i] = (cl_ulong)genrand_int32(d) | ( (cl_ulong)genrand_int32(d) << 32 ); in gen_input_data()
|
/external/OpenCL-CTS/test_conformance/profiling/ |
D | writeArray.cpp | 843 inptr[i][j] = genrand_int32(d); in test_write_array_int() 879 inptr[i][j] = genrand_int32(d); in test_write_array_uint() 914 inptr[i][j] = (short)genrand_int32(d); in test_write_array_short() 949 inptr[i][j] = (cl_ushort)genrand_int32(d); in test_write_array_ushort() 984 inptr[i][j] = (char)genrand_int32(d); in test_write_array_char() 1019 inptr[i][j] = (uchar)genrand_int32(d); in test_write_array_uchar() 1130 inptr[i][j] = (cl_long) genrand_int32(d) ^ ((cl_long) genrand_int32(d) << 32); in test_write_array_long() 1171 inptr[i][j] = (cl_ulong) genrand_int32(d) | ((cl_ulong) genrand_int32(d) << 32); in test_write_array_ulong() 1201 inptr[0][j].a = (int)genrand_int32(d); in test_write_array_struct()
|
/external/OpenCL-CTS/test_conformance/math_brute_force/ |
D | mad_float.cpp | 163 p[j] = genrand_int32(d); in TestFunc_mad_Float() 164 p2[j] = genrand_int32(d); in TestFunc_mad_Float() 165 p3[j] = genrand_int32(d); in TestFunc_mad_Float()
|
D | mad_double.cpp | 164 p[j] = DoubleFromUInt32(genrand_int32(d)); in TestFunc_mad_Double() 165 p2[j] = DoubleFromUInt32(genrand_int32(d)); in TestFunc_mad_Double() 166 p3[j] = DoubleFromUInt32(genrand_int32(d)); in TestFunc_mad_Double()
|
/external/OpenCL-CTS/test_conformance/allocations/ |
D | allocation_fill.cpp | 42 data[j] = genrand_int32(d); in fill_buffer_with_data() 97 data[j] = (cl_uint)genrand_int32(d); in fill_buffer_with_data() 182 data[j] = (cl_uint)genrand_int32(d); in fill_image_with_data() 243 data[j] = (cl_uint)genrand_int32(d); in fill_image_with_data()
|
/external/OpenCL-CTS/test_conformance/api/ |
D | test_kernel_arg_changes.cpp | 74 sizes[ i ][ 0 ] = genrand_int32(seed) % (maxWidth/32) + 1; in test_kernel_arg_changes() 75 sizes[ i ][ 1 ] = genrand_int32(seed) % (maxHeight/32) + 1; in test_kernel_arg_changes()
|
D | test_kernels.cpp | 410 …randomTestDataA[i] = (cl_int)genrand_int32(d) & 0xffffff; /* Make sure values are positive, jus… in test_set_kernel_arg_constant() 411 …randomTestDataB[i] = (cl_int)genrand_int32(d) & 0xffffff; /* deal with overflow on the verifica… in test_set_kernel_arg_constant() 494 image_pair[i].A = (cl_int)genrand_int32(d); in test_set_kernel_arg_struct_array() 495 image_pair[i].B = (cl_int)genrand_int32(d); in test_set_kernel_arg_struct_array() 592 …randomTestDataA[i] = (cl_int)genrand_int32(d) & 0xffff; /* Make sure values are positive and sm… in test_kernel_global_constant()
|
/external/python/cpython2/Modules/ |
D | _randommodule.c | 95 genrand_int32(RandomObject *self) in genrand_int32() function 140 unsigned long a=genrand_int32(self)>>5, b=genrand_int32(self)>>6; in random_random() 492 r = genrand_int32(self); in random_getrandbits()
|
/external/OpenCL-CTS/test_conformance/pipes/ |
D | test_pipe_read_write.cpp | 643 inptr[i].a = (char)genrand_int32(d); in test_pipe_readwrite_struct_generic() 644 inptr[i].b = genrand_int32(d); in test_pipe_readwrite_struct_generic() 721 inptr[i][j] = (int)genrand_int32(d); in test_pipe_readwrite_int() 774 inptr[i][j] = (cl_uint)genrand_int32(d); in test_pipe_readwrite_uint() 826 inptr[i][j] = (cl_short)genrand_int32(d); in test_pipe_readwrite_short() 878 inptr[i][j] = (cl_ushort)genrand_int32(d); in test_pipe_readwrite_ushort() 931 inptr[i][j] = (char)genrand_int32(d); in test_pipe_readwrite_char() 984 inptr[i][j] = (uchar)genrand_int32(d); in test_pipe_readwrite_uchar() 1150 inptr[i][j] = (cl_long) genrand_int32(d) ^ ((cl_long) genrand_int32(d) << 32); in test_pipe_readwrite_long() 1209 inptr[i][j] = (cl_ulong) genrand_int32(d) | ((cl_ulong) genrand_int32(d) << 32); in test_pipe_readwrite_ulong()
|