Lines Matching refs:startRefValues
65 cl_int (*ExpectedValueIntFn)( size_t size, cl_int *startRefValues, size_t whichDestValue );
66 void (*GenerateRefsIntFn)( size_t size, cl_int *startRefValues, MTdata d );
70 … cl_long (*ExpectedValueLongFn)( size_t size, cl_long *startRefValues, size_t whichDestValue );
71 void (*GenerateRefsLongFn)( size_t size, cl_long *startRefValues, MTdata d );
75 …cl_float (*ExpectedValueFloatFn)( size_t size, cl_float *startRefValues, size_t whichDestValue …
76 void (*GenerateRefsFloatFn)( size_t size, cl_float *startRefValues, MTdata d );
127 void *refValues, *startRefValues; in test_atomic_function() local
221 startRefValues = malloc( typeSize * threadSize ); in test_atomic_function()
223 testFns.GenerateRefsIntFn( threadSize, (cl_int *)startRefValues, d ); in test_atomic_function()
225 testFns.GenerateRefsLongFn( threadSize, (cl_long *)startRefValues, d ); in test_atomic_function()
230 startRefValues = NULL; in test_atomic_function()
255 ((startRefValues != NULL ? CL_MEM_COPY_HOST_PTR : CL_MEM_READ_WRITE)), in test_atomic_function()
256 typeSize * threadSize, startRefValues, NULL); in test_atomic_function()
302 intVal = testFns.ExpectedValueIntFn( threadSize, (cl_int *)startRefValues, i ); in test_atomic_function()
308 longVal = testFns.ExpectedValueLongFn( threadSize, (cl_long *)startRefValues, i ); in test_atomic_function()
318 cl_int *startRefs = (cl_int *)startRefValues; in test_atomic_function()
332 cl_long *startRefs = (cl_long *)startRefValues; in test_atomic_function()
420 if( startRefValues != NULL ) in test_atomic_function()
421 free( startRefValues ); in test_atomic_function()
464 cl_int test_atomic_add_result_int( size_t size, cl_int *startRefValues, size_t whichDestValue ) in test_atomic_add_result_int() argument
472 cl_long test_atomic_add_result_long( size_t size, cl_long *startRefValues, size_t whichDestValue ) in test_atomic_add_result_long() argument
497 cl_int test_atomic_sub_result_int( size_t size, cl_int *startRefValues, size_t whichDestValue ) in test_atomic_sub_result_int() argument
505 cl_long test_atomic_sub_result_long( size_t size, cl_long *startRefValues, size_t whichDestValue ) in test_atomic_sub_result_long() argument
723 cl_int test_atomic_min_result_int( size_t size, cl_int *startRefValues, size_t whichDestValue ) in test_atomic_min_result_int() argument
728 if( startRefValues[ i ] < total ) in test_atomic_min_result_int()
729 total = startRefValues[ i ]; in test_atomic_min_result_int()
734 void test_atomic_min_gen_int( size_t size, cl_int *startRefValues, MTdata d ) in test_atomic_min_gen_int() argument
737 startRefValues[i] = (cl_int)( genrand_int32(d) % 0x3fffffff ) + 0x3fffffff; in test_atomic_min_gen_int()
740 cl_long test_atomic_min_result_long( size_t size, cl_long *startRefValues, size_t whichDestValue ) in test_atomic_min_result_long() argument
745 if( startRefValues[ i ] < total ) in test_atomic_min_result_long()
746 total = startRefValues[ i ]; in test_atomic_min_result_long()
751 void test_atomic_min_gen_long( size_t size, cl_long *startRefValues, MTdata d ) in test_atomic_min_gen_long() argument
754 …startRefValues[i] = (cl_long)( genrand_int32(d) | ( ( (cl_long)genrand_int32(d) & 0x7fffffffL ) <<… in test_atomic_min_gen_long()
775 cl_int test_atomic_max_result_int( size_t size, cl_int *startRefValues, size_t whichDestValue ) in test_atomic_max_result_int() argument
780 if( startRefValues[ i ] > total ) in test_atomic_max_result_int()
781 total = startRefValues[ i ]; in test_atomic_max_result_int()
786 void test_atomic_max_gen_int( size_t size, cl_int *startRefValues, MTdata d ) in test_atomic_max_gen_int() argument
789 startRefValues[i] = (cl_int)( genrand_int32(d) % 0x3fffffff ) + 0x3fffffff; in test_atomic_max_gen_int()
792 cl_long test_atomic_max_result_long( size_t size, cl_long *startRefValues, size_t whichDestValue ) in test_atomic_max_result_long() argument
797 if( startRefValues[ i ] > total ) in test_atomic_max_result_long()
798 total = startRefValues[ i ]; in test_atomic_max_result_long()
803 void test_atomic_max_gen_long( size_t size, cl_long *startRefValues, MTdata d ) in test_atomic_max_gen_long() argument
806 …startRefValues[i] = (cl_long)( genrand_int32(d) | ( ( (cl_long)genrand_int32(d) & 0x7fffffffL ) <<… in test_atomic_max_gen_long()
827 cl_int test_atomic_inc_result_int( size_t size, cl_int *startRefValues, size_t whichDestValue ) in test_atomic_inc_result_int() argument
832 cl_long test_atomic_inc_result_long( size_t size, cl_long *startRefValues, size_t whichDestValue ) in test_atomic_inc_result_long() argument
855 cl_int test_atomic_dec_result_int( size_t size, cl_int *startRefValues, size_t whichDestValue ) in test_atomic_dec_result_int() argument
860 cl_long test_atomic_dec_result_long( size_t size, cl_long *startRefValues, size_t whichDestValue ) in test_atomic_dec_result_long() argument
910 cl_int test_atomic_cmpxchg_result_int( size_t size, cl_int *startRefValues, size_t whichDestValue ) in test_atomic_cmpxchg_result_int() argument
918 cl_long test_atomic_cmpxchg_result_long( size_t size, cl_long *startRefValues, size_t whichDestValu… in test_atomic_cmpxchg_result_long() argument
983 cl_int test_atomic_and_result_int( size_t size, cl_int *startRefValues, size_t whichResult ) in test_atomic_and_result_int() argument
998 cl_long test_atomic_and_result_long( size_t size, cl_long *startRefValues, size_t whichResult ) in test_atomic_and_result_long() argument
1043 cl_int test_atomic_or_result_int( size_t size, cl_int *startRefValues, size_t whichResult ) in test_atomic_or_result_int() argument
1058 cl_long test_atomic_or_result_long( size_t size, cl_long *startRefValues, size_t whichResult ) in test_atomic_or_result_long() argument
1099 cl_int test_atomic_xor_result_int( size_t size, cl_int *startRefValues, size_t whichResult ) in test_atomic_xor_result_int() argument
1107 cl_long test_atomic_xor_result_long( size_t size, cl_long *startRefValues, size_t whichResult ) in test_atomic_xor_result_long() argument