MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ceil_byte_length

Function ceil_byte_length

dpdk/app/test/test_cryptodev.c:178–185  ·  view source on GitHub ↗

Get number of bytes in X bits (rounding up) */

Source from the content-addressed store, hash-verified

176
177/* Get number of bytes in X bits (rounding up) */
178static uint32_t
179ceil_byte_length(uint32_t num_bits)
180{
181 if (num_bits % 8)
182 return ((num_bits >> 3) + 1);
183 else
184 return (num_bits >> 3);
185}
186
187static void
188post_process_raw_dp_op(void *user_data, uint32_t index __rte_unused,

Calls

no outgoing calls

Tested by

no test coverage detected