Copy a target value from src[idx] to dest[idx]
| 852 | |
| 853 | // Copy a target value from src[idx] to dest[idx] |
| 854 | static int l_copy(cl_uchar* dest, unsigned dest_idx, const cl_uchar* src, |
| 855 | unsigned src_idx, const TypeInfo& ti) |
| 856 | { |
| 857 | cl_uchar* raw_dest = dest + dest_idx * ti.get_size(); |
| 858 | const cl_uchar* raw_src = src + src_idx * ti.get_size(); |
| 859 | memcpy(raw_dest, raw_src, ti.get_value_size()); |
| 860 | |
| 861 | return 0; |
| 862 | } |
| 863 | |
| 864 | |
| 865 | static std::string conversion_functions(const TypeInfo& ti) |
no test coverage detected