38 #ifndef included_clib_random_buffer_h 39 #define included_clib_random_buffer_h 94 n_words = n_bytes /
sizeof (
uword);
95 if (n_bytes %
sizeof (
uword))
105 if (n_bytes <
sizeof (
uword))
u8 cached_bytes[sizeof(uword)]
static void * clib_random_buffer_get_data(clib_random_buffer_t *b, uword n_bytes)
void clib_random_buffer_init(clib_random_buffer_t *b, uword seed)
static void clib_random_buffer_free(clib_random_buffer_t *b)
sll srl srl sll sra u16x4 i
#define vec_free(V)
Free vector's memory (no header).
void clib_random_buffer_fill(clib_random_buffer_t *b, uword n_words)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)