Lines Matching refs:src
21 #define array_copy(dest, src, count) \ argument
23 STATIC_ASSERT(sizeof((dest)[0]) == sizeof((src)[0])); \
24 memcpy((dest), (src), sizeof((dest)[0]) * (count)); \
27 #define array_shift(array, dest, src) \ argument
29 assert(src <= countof((array))); \
31 memmove((array) + (dest), (array) + (src), \
32 sizeof((array)[0]) * (countof((array)) - MAX((src), (dest)))); \
57 #define array_shift_down(array, dest, src) \ argument
59 assert(src > dest); \
60 assert(src <= countof((array))); \
61 array_shift((array), (dest), (src)); \
62 array_clear_end((array), countof((array)) - ((src) - (dest))); \