MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCL-CTS / l_copy

Function l_copy

test_conformance/basic/test_progvar.cpp:854–862  ·  view source on GitHub ↗

Copy a target value from src[idx] to dest[idx]

Source from the content-addressed store, hash-verified

852
853// Copy a target value from src[idx] to dest[idx]
854static 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
865static std::string conversion_functions(const TypeInfo& ti)

Callers 2

l_write_read_for_typeFunction · 0.85

Calls 2

get_sizeMethod · 0.80
get_value_sizeMethod · 0.80

Tested by

no test coverage detected