| 810 | |
| 811 | |
| 812 | static void l_set_randomly(cl_uchar* buf, size_t buf_size, |
| 813 | RandomSeed& rand_state) |
| 814 | { |
| 815 | assert(0 == (buf_size % sizeof(cl_uint))); |
| 816 | for (size_t i = 0; i < buf_size; i += sizeof(cl_uint)) |
| 817 | { |
| 818 | *((cl_uint*)(buf + i)) = genrand_int32(rand_state); |
| 819 | } |
| 820 | #if 0 |
| 821 | for ( size_t i = 0; i < buf_size ; i++ ) { |
| 822 | printf("%02x",buf[i]); |
| 823 | } |
| 824 | printf("\n"); |
| 825 | #endif |
| 826 | } |
| 827 | |
| 828 | // Return num_value values of the given type. |
| 829 | // Returns CL_SUCCESS if they compared as equal. |
no test coverage detected