/external/OpenCL-CTS/test_conformance/integer_ops/ |
D | verification_and_generation_functions.cpp | 91 verify_long(int test, size_t vector_size, cl_long *inptrA, cl_long *inptrB, cl_long *outptr, size_t… in verify_long() argument 103 r = inptrA[i] + inptrB[i]; in verify_long() 106 r = inptrA[i] - inptrB[i]; in verify_long() 109 r = inptrA[i] * inptrB[i]; in verify_long() 112 if (inptrB[i] == 0 || (inptrB[i] == -1 && inptrA[i] == CL_LONG_MIN)) in verify_long() 115 r = inptrA[i] / inptrB[i]; in verify_long() 118 if (inptrB[i] == 0 || (inptrB[i] == -1 && inptrA[i] == CL_LONG_MIN)) in verify_long() 121 r = inptrA[i] % inptrB[i]; in verify_long() 124 r = inptrA[i] & inptrB[i]; in verify_long() 127 r = inptrA[i] | inptrB[i]; in verify_long() [all …]
|
D | test_intmul24.cpp | 128 verify_int_mul24(int *inptrA, int *inptrB, int *outptr, size_t n, size_t vecSize) in verify_int_mul24() argument 135 int a = (inptrA[i] << 8 ) >> 8; in verify_int_mul24() 146 verify_uint_mul24(cl_uint *inptrA, cl_uint *inptrB, cl_uint *outptr, size_t n, size_t vecSize) in verify_uint_mul24() argument 153 r = (inptrA[i] & 0xffffffU) * (inptrB[i] & 0xffffffU); in verify_uint_mul24() 156 …log_error( "failed at %ld: 0x%8.8x * 0x%8.8x = *0x%8.8x vs 0x%8.8x\n", i, inptrA[i], inptrB[i], r,… in verify_uint_mul24()
|
D | test_intmad24.cpp | 130 verify_int_mad24(int *inptrA, int *inptrB, int *inptrC, int *outptr, size_t n, size_t vecSize) in verify_int_mad24() argument 137 int a = inptrA[i]; in verify_int_mad24() 151 verify_uint_mad24(cl_uint *inptrA, cl_uint *inptrB, cl_uint *inptrC, cl_uint *outptr, size_t n, siz… in verify_uint_mad24() argument 158 cl_uint a = inptrA[i] & 0xFFFFFFU; in verify_uint_mad24()
|
D | test_int_basic_ops.cpp | 120 extern int verify_long(int test, size_t vector_size, cl_long *inptrA, cl_long *inptrB, cl_long *out… 122 extern int verify_ulong(int test, size_t vector_size, cl_ulong *inptrA, cl_ulong *inptrB, cl_ulong … 124 extern int verify_int(int test, size_t vector_size, cl_int *inptrA, cl_int *inptrB, cl_int *outptr,… 126 extern int verify_uint(int test, size_t vector_size, cl_uint *inptrA, cl_uint *inptrB, cl_uint *out… 128 extern int verify_short(int test, size_t vector_size, cl_short *inptrA, cl_short *inptrB, cl_short … 130 extern int verify_ushort(int test, size_t vector_size, cl_ushort *inptrA, cl_ushort *inptrB, cl_ush… 132 extern int verify_char(int test, size_t vector_size, cl_char *inptrA, cl_char *inptrB, cl_char *out… 134 extern int verify_uchar(int test, size_t vector_size, cl_uchar *inptrA, cl_uchar *inptrB, cl_uchar …
|
/external/OpenCL-CTS/test_conformance/basic/ |
D | test_fpmath_float.cpp | 55 verify_fpadd(float *inptrA, float *inptrB, float *outptr, int n) in verify_fpadd() argument 62 r = inptrA[i] + inptrB[i]; in verify_fpadd() 75 verify_fpsub(float *inptrA, float *inptrB, float *outptr, int n) in verify_fpsub() argument 82 r = inptrA[i] - inptrB[i]; in verify_fpsub() 95 verify_fpmul(float *inptrA, float *inptrB, float *outptr, int n) in verify_fpmul() argument 102 r = inptrA[i] * inptrB[i]; in verify_fpmul()
|
D | test_fpmath_float2.cpp | 54 verify_fpadd2(float *inptrA, float *inptrB, float *outptr, int n) in verify_fpadd2() argument 61 r = inptrA[i] + inptrB[i]; in verify_fpadd2() 74 verify_fpsub2(float *inptrA, float *inptrB, float *outptr, int n) in verify_fpsub2() argument 81 r = inptrA[i] - inptrB[i]; in verify_fpsub2() 94 verify_fpmul2(float *inptrA, float *inptrB, float *outptr, int n) in verify_fpmul2() argument 101 r = inptrA[i] * inptrB[i]; in verify_fpmul2()
|
D | test_fpmath_float4.cpp | 54 verify_fpadd4(float *inptrA, float *inptrB, float *outptr, int n) in verify_fpadd4() argument 61 r = inptrA[i] + inptrB[i]; in verify_fpadd4() 74 verify_fpsub4(float *inptrA, float *inptrB, float *outptr, int n) in verify_fpsub4() argument 81 r = inptrA[i] - inptrB[i]; in verify_fpsub4() 94 verify_fpmul4(float *inptrA, float *inptrB, float *outptr, int n) in verify_fpmul4() argument 101 r = inptrA[i] * inptrB[i]; in verify_fpmul4()
|
D | test_queue_priority.cpp | 55 verify_fpadd(float *inptrA, float *inptrB, float *outptr, int n, int fileNum) in verify_fpadd() argument 64 reference_ptr[i] = inptrA[i] + inptrB[i]; in verify_fpadd() 83 verify_fpsub(float *inptrA, float *inptrB, float *outptr, int n, int fileNum) in verify_fpsub() argument 92 reference_ptr[i] = inptrA[i] - inptrB[i]; in verify_fpsub() 111 verify_fpmul(float *inptrA, float *inptrB, float *outptr, int n, int fileNum) in verify_fpmul() argument 120 reference_ptr[i] = inptrA[i] * inptrB[i]; in verify_fpmul()
|
D | test_hostptr.cpp | 37 static int verify_hostptr(cl_float *inptrA, cl_float *inptrB, cl_float *outptr, int n) in verify_hostptr() argument 44 r = inptrA[i] + inptrB[i]; in verify_hostptr()
|
/external/OpenCL-CTS/test_conformance/commonfns/ |
D | test_fmaxf.cpp | 68 verify_fmax(float *inptrA, float *inptrB, float *outptr, int n, int veclen) in verify_fmax() argument 76 r = (inptrA[i] >= inptrB[ii]) ? inptrA[i] : inptrB[ii]; in verify_fmax() 81 log_info("Taking max of (%f,%f)\n", inptrA[i], inptrB[i]); in verify_fmax()
|
D | test_stepf.cpp | 78 verify_step( cl_float *inptrA, cl_float *inptrB, cl_float *outptr, int n, int veclen) in verify_step() argument 86 r = (inptrB[i] < inptrA[ii]) ? 0.0f : 1.0f; in verify_step() 89 …log_error( "Failure @ {%d, element %d}: step(%a,%a) -> *%a vs %a\n", ii, j, inptrA[ii], inptrB[i],… in verify_step() 347 verify_step_double(cl_double *inptrA, cl_double *inptrB, cl_double *outptr, int n, int veclen) in verify_step_double() argument 355 r = (inptrB[i] < inptrA[ii]) ? 0.0 : 1.0; in verify_step_double() 358 …log_error( "Failure @ {%d, element %d}: step(%a,%a) -> *%a vs %a\n", ii, j, inptrA[ii], inptrB[i],… in verify_step_double()
|
D | test_fmin.cpp | 74 verify_fmin(float *inptrA, float *inptrB, float *outptr, int n) in verify_fmin() argument 81 r = (inptrA[i] > inptrB[i]) ? inptrB[i] : inptrA[i]; in verify_fmin()
|
D | test_mix.cpp | 36 verify_mix(float *inptrA, float *inptrB, float *inptrC, float *outptr, int n) in verify_mix() argument 43 r = inptrA[i] + ((inptrB[i] - inptrA[i]) * inptrC[i]); in verify_mix()
|
D | test_fminf.cpp | 68 verify_fmin(float *inptrA, float *inptrB, float *outptr, int n, int veclen) in verify_fmin() argument 76 r = (inptrA[i] > inptrB[ii]) ? inptrB[ii] : inptrA[i]; in verify_fmin()
|
D | test_fmax.cpp | 69 verify_fmax(float *inptrA, float *inptrB, float *outptr, int n) in verify_fmax() argument 76 r = (inptrA[i] >= inptrB[i]) ? inptrA[i] : inptrB[i]; in verify_fmax()
|
D | test_step.cpp | 79 verify_step(float *inptrA, float *inptrB, float *outptr, int n) in verify_step() argument 86 r = (inptrB[i] < inptrA[i]) ? 0.0f : 1.0f; in verify_step() 346 verify_step_double(double *inptrA, double *inptrB, double *outptr, int n) in verify_step_double() argument 353 r = (inptrB[i] < inptrA[i]) ? 0.0 : 1.0; in verify_step_double()
|