| 43 | } |
| 44 | |
| 45 | static inline void* |
| 46 | test_ring_inc_ptr(void *obj, int esize, unsigned int n) |
| 47 | { |
| 48 | size_t sz; |
| 49 | |
| 50 | sz = sizeof(void *); |
| 51 | /* Legacy queue APIs? */ |
| 52 | if (esize != -1) |
| 53 | sz = esize; |
| 54 | |
| 55 | return (void *)((uint32_t *)obj + (n * sz / sizeof(uint32_t))); |
| 56 | } |
| 57 | |
| 58 | static inline void |
| 59 | test_ring_mem_copy(void *dst, void * const *src, int esize, unsigned int num) |
no outgoing calls
no test coverage detected