search for: copy_ty

Displaying 1 result from an estimated 1 matches for "copy_ty".

Did you mean: copy_to
2017 May 08
3
RFC: Element-atomic memory intrinsics
...from src must be marked ‘unordered' * expanded memcpy code has this sort of form (ignoring alignment for simplicity): template<typename len_ty, uint16_t element_size> void memcpy_element_atomic(char *dest, char *src, len_ty len) { copy_ty = <int type with sizeof(type) == element_size>; len_ty num_iters = len / sizeof(copy_ty); for (len_ty i=0; i < num_iters; i++) *(copy_ty*)(dest + i*sizeof(copy_ty)) = *(copy_ty*)(src + i*sizeof(copy_ty)); //...