Home
last modified time | relevance | path

Searched refs:cl_ushort (Results 1 – 25 of 66) sorted by relevance

123

/external/OpenCL-CTS/test_conformance/basic/
Dtest_readimage_int16.cpp49 cl_ushort *ptr = (cl_ushort*)malloc(w * h * 4 * sizeof(cl_ushort)); in generate_16bit_image()
53 ptr[i] = (cl_ushort)genrand_int32(d); in generate_16bit_image()
59 verify_16bit_image(cl_ushort *image, cl_ushort *outptr, int w, int h) in verify_16bit_image()
81 cl_ushort *input_ptr, *output_ptr; in test_readimage_int16()
88 size_t length = img_width * img_height * 4 * sizeof(cl_ushort); in test_readimage_int16()
97 output_ptr = (cl_ushort*)malloc(length); in test_readimage_int16()
Dtest_writeimage_int16.cpp46 cl_ushort *ptr = (cl_ushort*)malloc(w * h * 4 * sizeof(cl_ushort)); in generate_16bit_image()
50 ptr[i] = (cl_ushort)genrand_int32(d); in generate_16bit_image()
60 verify_16bit_image(const char *string, cl_ushort *image, cl_ushort *outptr, int w, int h) in verify_16bit_image()
83 cl_ushort *input_ptr, *output_ptr; in test_writeimage_int16()
90 size_t length = img_width * img_height * 4 * sizeof(cl_ushort); in test_writeimage_int16()
98 output_ptr = (cl_ushort*)malloc(length); in test_writeimage_int16()
Dtest_readimage3d_int16.cpp50 unsigned short *ptr = (cl_ushort*)malloc(w * h * d * 4 * sizeof(cl_ushort)); in generate_16bit_image()
54 ptr[i] = (cl_ushort)genrand_int32(data); in generate_16bit_image()
60 verify_16bit_image(cl_ushort *image, cl_ushort *outptr, int w, int h, int d) in verify_16bit_image()
83 cl_ushort *input_ptr, *output_ptr; in test_readimage3d_int16()
91 size_t length = img_width * img_height * img_depth * 4 * sizeof(cl_ushort); in test_readimage3d_int16()
99 output_ptr = (cl_ushort*)malloc(length); in test_readimage3d_int16()
/external/OpenCL-CTS/test_conformance/integer_ops/
Dtest_integers.cpp185 … (int)i, (int)j, ((cl_ushort*)&expected)[0], *( (cl_ushort *)p ), in test_single_param_integer_kernel()
186 *( (cl_ushort *)in ), *( (cl_ushort *)in2 ) ); in test_single_param_integer_kernel()
189 (int)i, (int)j, ((cl_ushort*)&expected)[0], *( (cl_ushort *)p ), in test_single_param_integer_kernel()
190 *( (cl_ushort *)in ) ); in test_single_param_integer_kernel()
273 testValue = *( (cl_ushort *)source ); in verify_integer_clz()
274 typeBits = 8 * sizeof( cl_ushort ); in verify_integer_clz()
318 *( (cl_ushort *)destination ) = count; in verify_integer_clz()
366 testValue = *( (cl_ushort *)source ); in verify_integer_ctz()
367 typeBits = 8 * sizeof( cl_ushort ); in verify_integer_ctz()
411 *( (cl_ushort *)destination ) = count; in verify_integer_ctz()
[all …]
Dtest_upsample.cpp180 cl_ushort *dPtr = (cl_ushort*) outData; in create_upsample_data()
183 cl_ushort u = *bPtr++; in create_upsample_data()
184 u |= ((cl_ushort) *aPtr++) << 8; in create_upsample_data()
191 const cl_ushort *aPtr = (const cl_ushort *) sourceA; in create_upsample_data()
192 const cl_ushort *bPtr = (const cl_ushort *) sourceB; in create_upsample_data()
Dtest_absdiff.cpp63 const cl_ushort *outptr = (const cl_ushort *)r; in verify_absdiff_short()
67 cl_ushort r = inA[i] - inB[i]; in verify_absdiff_short()
78 const cl_ushort *inA = (const cl_ushort *)p; in verify_absdiff_ushort()
79 const cl_ushort *inB = (const cl_ushort *)q; in verify_absdiff_ushort()
80 const cl_ushort *outptr = (const cl_ushort *)r; in verify_absdiff_ushort()
84 cl_ushort r = inA[i] - inB[i]; in verify_absdiff_ushort()
Dtest_abs.cpp47 const cl_ushort *outptr = (const cl_ushort*) q; in verify_abs_short()
51 cl_ushort r = inA[i]; in verify_abs_short()
111 const cl_ushort *inA = (const cl_ushort*) p; in verify_abs_ushort()
112 const cl_ushort *outptr = (const cl_ushort*) q; in verify_abs_ushort()
116 cl_ushort r = inA[i]; in verify_abs_ushort()
Dverification_and_generation_functions.cpp1075 verify_ushort(int test, size_t vector_size, cl_ushort *inptrA, cl_ushort *inptrB, cl_ushort *outptr… in verify_ushort()
1077 cl_ushort r; in verify_ushort()
1079 : (cl_uint)(sizeof(cl_ushort)*8)-1; in verify_ushort()
1218 …the shift to get the final shift amount %d (0x%x).\n", (int)log2(sizeof(cl_ushort)*8), inptrB[i]&… in verify_ushort()
1223 …the shift to get the final shift amount %d (0x%x).\n", (int)log2(sizeof(cl_ushort)*8), inptrB[j]&… in verify_ushort()
1243 init_ushort_data(uint64_t indx, int num_elements, cl_ushort *input_ptr[], MTdata d) in init_ushort_data()
1245 …static const cl_ushort specialCaseList[] = { 0, -1, 1, CL_SHRT_MAX, CL_SHRT_MAX + 1, CL_USHRT_MAX … in init_ushort_data()
1252 ((cl_ushort *)input_ptr[0])[j] = (cl_ushort) bits; in init_ushort_data()
1253 ((cl_ushort *)input_ptr[1])[j] = (cl_ushort) (bits >> 16); in init_ushort_data()
1262 ((cl_ushort *)input_ptr[0])[index] = specialCaseList[x]; in init_ushort_data()
[all …]
/external/OpenCL-CTS/test_conformance/spir/
Dtypeinfo.h230 … false, 0, 1, 0x0, 0xffff, KernelArgGeneratorT<cl_ushort>)
231 … true, 0, 16, 0x0, 0xffff, KernelArgGeneratorT<cl_ushort>)
232 … false, 0, 16, 0x0, 0xffff, KernelArgGeneratorT<cl_ushort>)
233 … true, 0, 16, 0x0, 0xffff, KernelArgGeneratorT<cl_ushort>)
234 … false, 0, 2, 0x0, 0xffff, KernelArgGeneratorT<cl_ushort>)
235 … true, 0, 2, 0x0, 0xffff, KernelArgGeneratorT<cl_ushort>)
236 … false, 0, 3, 0x0, 0xffff, KernelArgGeneratorT<cl_ushort>)
237 … true, 0, 3, 0x0, 0xffff, KernelArgGeneratorT<cl_ushort>)
238 … false, 0, 4, 0x0, 0xffff, KernelArgGeneratorT<cl_ushort>)
239 … true, 0, 4, 0x0, 0xffff, KernelArgGeneratorT<cl_ushort>)
[all …]
/external/OpenCL-CTS/test_conformance/select/
Dutil_select.cpp36 sizeof(cl_ushort), sizeof(cl_short),
97 cl_ushort *d, *x, *y; in refselect_1u16()
99 d = (cl_ushort*) dest; in refselect_1u16()
100 x = (cl_ushort*) src1; in refselect_1u16()
101 y = (cl_ushort*) src2; in refselect_1u16()
179 cl_ushort *m; in refselect_1i16u()
183 m = (cl_ushort*) cmp; in refselect_1i16u()
190 cl_ushort *d, *x, *y, *m; in refselect_1u16u()
191 d = (cl_ushort*) dest; in refselect_1u16u()
192 x = (cl_ushort*) src1; in refselect_1u16u()
[all …]
/external/OpenCL-CTS/test_conformance/conversions/
Dbasic_test_conversions.cpp68 sizeof( cl_ushort ), sizeof( cl_short ),
607 static void uchar2ushort( void *out, void *in){ ((cl_ushort*) out)[0] = ((cl_uchar*) in)[0]; } in uchar2ushort()
624 static void char2ushort( void *out, void *in){ ((cl_ushort*) out)[0] = ((cl_char*) in)[0]; } in char2ushort()
640 static void ushort2uchar( void *out, void *in){ ((cl_uchar*) out)[0] = ((cl_ushort*) in)[0]; } in ushort2uchar()
641 static void ushort2char( void *out, void *in){ ((char*) out)[0] = ((cl_ushort*) in)[0]; } in ushort2char()
642 static void ushort2short( void *out, void *in){ ((short*) out)[0] = ((cl_ushort*) in)[0]; } in ushort2short()
643 static void ushort2uint( void *out, void *in){ ((cl_uint*) out)[0] = ((cl_ushort*) in)[0]; } in ushort2uint()
644 static void ushort2int( void *out, void *in){ ((int*) out)[0] = ((cl_ushort*) in)[0]; } in ushort2int()
647 cl_ushort l = ((cl_ushort*) in)[0]; in ushort2float()
652 cl_ushort l = ((cl_ushort*) in)[0]; in ushort2double()
[all …]
/external/OpenCL-CTS/test_conformance/half/
DTest_vStoreHalf.cpp29 cl_ushort *r;
39 cl_ushort *r;
49 const cl_ushort *r;
50 const cl_ushort *s;
61 const cl_ushort *r;
62 const cl_ushort *s;
78 cl_ushort *r = cri->r + off; in ReferenceF()
102 const cl_ushort *r = cri->r + off; in CheckF()
103 const cl_ushort *s = cri->s + off; in CheckF()
106 cl_ushort correct2 = f( 0.0f); in CheckF()
[all …]
Dtests.h47 typedef cl_ushort (*f2h)( float );
48 typedef cl_ushort (*d2h)( double );
/external/OpenCL-CTS/dependencies/ocl-headers/CL/
Dcl_platform.h148 typedef unsigned __int16 cl_ushort; typedef
250 typedef uint16_t cl_ushort;
420 typedef cl_ushort __cl_ushort8 __attribute__((vector_size(16)));
454 typedef cl_ushort __cl_ushort4 __attribute__((vector_size(8)));
775 cl_ushort CL_ALIGNED(4) s[2];
777 __CL_ANON_STRUCT__ struct{ cl_ushort x, y; };
778 __CL_ANON_STRUCT__ struct{ cl_ushort s0, s1; };
779 __CL_ANON_STRUCT__ struct{ cl_ushort lo, hi; };
788 cl_ushort CL_ALIGNED(8) s[4];
790 __CL_ANON_STRUCT__ struct{ cl_ushort x, y, z, w; };
[all …]
/external/angle/include/CL/
Dcl_platform.h148 typedef unsigned __int16 cl_ushort; typedef
250 typedef uint16_t cl_ushort;
420 typedef cl_ushort __cl_ushort8 __attribute__((vector_size(16)));
454 typedef cl_ushort __cl_ushort4 __attribute__((vector_size(8)));
775 cl_ushort CL_ALIGNED(4) s[2];
777 __CL_ANON_STRUCT__ struct{ cl_ushort x, y; };
778 __CL_ANON_STRUCT__ struct{ cl_ushort s0, s1; };
779 __CL_ANON_STRUCT__ struct{ cl_ushort lo, hi; };
788 cl_ushort CL_ALIGNED(8) s[4];
790 __CL_ANON_STRUCT__ struct{ cl_ushort x, y, z, w; };
[all …]
/external/mesa3d/include/CL/
Dcl_platform.h128 typedef unsigned __int16 cl_ushort; typedef
230 typedef uint16_t cl_ushort;
400 typedef cl_ushort __cl_ushort8 __attribute__((vector_size(16)));
434 typedef cl_ushort __cl_ushort4 __attribute__((vector_size(8)));
755 cl_ushort CL_ALIGNED(4) s[2];
757 __CL_ANON_STRUCT__ struct{ cl_ushort x, y; };
758 __CL_ANON_STRUCT__ struct{ cl_ushort s0, s1; };
759 __CL_ANON_STRUCT__ struct{ cl_ushort lo, hi; };
768 cl_ushort CL_ALIGNED(8) s[4];
770 __CL_ANON_STRUCT__ struct{ cl_ushort x, y, z, w; };
[all …]
/external/OpenCL-CTS/test_conformance/extensions/cl_khr_dx9_media_sharing/
Dtest_other_data_types.cpp555 if (other_data_types<cl_ushort>(deviceID, context, queue, num_elements, 10, in test_other_data_types()
600 if (other_data_types<cl_ushort>( in test_other_data_types()
640 if (other_data_types<cl_ushort>(deviceID, context, queue, num_elements, 10, in test_other_data_types()
729 if (other_data_types<cl_ushort>(deviceID, context, queue, num_elements, 10, in test_other_data_types()
738 if (other_data_types<cl_ushort>(deviceID, context, queue, num_elements, 10, in test_other_data_types()
822 if (other_data_types<cl_ushort>(deviceID, context, queue, num_elements, 10, in test_other_data_types()
832 if (other_data_types<cl_ushort>( in test_other_data_types()
903 if (other_data_types<cl_ushort>(deviceID, context, queue, num_elements, 10, in test_other_data_types()
914 if (other_data_types<cl_ushort>(deviceID, context, queue, num_elements, 10, in test_other_data_types()
1047 if (other_data_types<cl_ushort>(deviceID, context, queue, num_elements, 10, in test_other_data_types()
[all …]
/external/OpenCL-CTS/test_common/harness/
DimageHelpers.cpp289 return get_format_channel_count(format) * sizeof(cl_ushort); in get_pixel_size()
433 log_error("*0x%4.4x vs. 0x%4.4x\n", ((cl_ushort *)sourcePixel)[0], in print_first_pixel_difference_error()
434 ((cl_ushort *)destPixel)[0]); in print_first_pixel_difference_error()
452 ((cl_ushort *)sourcePixel)[0], ((cl_ushort *)sourcePixel)[1], in print_first_pixel_difference_error()
453 ((cl_ushort *)sourcePixel)[2], ((cl_ushort *)destPixel)[0], in print_first_pixel_difference_error()
454 ((cl_ushort *)destPixel)[1], ((cl_ushort *)destPixel)[2]); in print_first_pixel_difference_error()
1377 cl_ushort *dPtr = (cl_ushort *)ptr; in read_image_pixel_float()
1390 cl_ushort *dPtr = (cl_ushort *)ptr; in read_image_pixel_float()
1415 cl_ushort *dPtr = (cl_ushort *)ptr; in read_image_pixel_float()
1423 cl_ushort *dPtr = (cl_ushort *)ptr; in read_image_pixel_float()
[all …]
DimageHelpers.h298 cl_ushort *dPtr = (cl_ushort *)ptr; in read_image_pixel()
312 cl_ushort *dPtr = (cl_ushort *)ptr; in read_image_pixel()
340 cl_ushort *dPtr = (cl_ushort *)ptr; in read_image_pixel()
390 cl_ushort *dPtr = (cl_ushort *)ptr; in read_image_pixel()
/external/OpenCL-CTS/test_conformance/non_uniform_work_group/
DTestNonUniformWorkGroup.h42 cl_ushort test_local_barrier_result_bool;
43 cl_ushort test_global_barrier_result_bool;
44 cl_ushort test_local_atomic_result_value;
/external/OpenCL-CTS/test_conformance/buffers/
Dtest_buffer_map.cpp485 cl_ushort *outptr = (cl_ushort *)ptr; in verify_read_ushort()
488 if ( outptr[i] != (cl_ushort)((1<<8)+1) ) in verify_read_ushort()
687 DECLARE_LOCK_TEST(ushort, cl_ushort) in DECLARE_LOCK_TEST()
Dtest_buffer_fill.cpp33 #define TEST_PRIME_USHORT (cl_ushort)((1<<8)+1)
458 cl_ushort *inptr = (cl_ushort *)ptr1; in verify_fill_ushort()
459 cl_ushort *outptr = (cl_ushort *)ptr2; in verify_fill_ushort()
1090 cl_ushort *inptr[5]; in test_buffer_fill_ushort()
1091 cl_ushort *hostptr[5]; in test_buffer_fill_ushort()
1092 cl_ushort *pattern[5]; in test_buffer_fill_ushort()
1103 ptrSizes[0] = sizeof(cl_ushort); in test_buffer_fill_ushort()
1116 pattern[i] = (cl_ushort *)malloc(ptrSizes[i]); in test_buffer_fill_ushort()
1120 inptr[i] = (cl_ushort *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill_ushort()
1128 hostptr[i] = (cl_ushort *)align_malloc(ptrSizes[i] * num_elements, min_alignment); in test_buffer_fill_ushort()
[all …]
/external/OpenCL-CTS/test_conformance/images/kernel_read_write/
Dtest_write_1D.cpp468 …4x 0x%4.4x 0x%4.4x\n", ((cl_ushort*)resultBuffer)[0], ((cl_ushort*)resultBuffer)[1], ((cl_ushort*)… in test_write_image_1D()
469 …0x%4.4x 0x%4.4x 0x%4.4x\n", ((cl_ushort*)resultPtr)[0], ((cl_ushort*)resultPtr)[1], ((cl_ushort*)r… in test_write_image_1D()
Dtest_write_1D_array.cpp488 …4x 0x%4.4x 0x%4.4x\n", ((cl_ushort*)resultBuffer)[0], ((cl_ushort*)resultBuffer)[1], ((cl_ushort*)… in test_write_image_1D_array()
489 …0x%4.4x 0x%4.4x 0x%4.4x\n", ((cl_ushort*)resultPtr)[0], ((cl_ushort*)resultPtr)[1], ((cl_ushort*)r… in test_write_image_1D_array()
/external/OpenCL-CTS/test_conformance/profiling/
DwriteArray.cpp494 cl_ushort *inptr = (cl_ushort *)ptr1; in verify_write_ushort()
495 cl_ushort *outptr = (cl_ushort *)ptr2; in verify_write_ushort()
932 cl_ushort *inptr[5]; in test_write_array_ushort()
939 ptrSizes[0] = sizeof(cl_ushort); in test_write_array_ushort()
946 inptr[i] = (cl_ushort *)malloc(ptrSizes[i] * num_elements); in test_write_array_ushort()
949 inptr[i][j] = (cl_ushort)genrand_int32(d); in test_write_array_ushort()
952 …err = test_stream_write( device, context, queue, num_elements, sizeof( cl_ushort ), "ushort", 5, (… in test_write_array_ushort()

123