* Bitmap memory footprint calculation * * @param n_bits * Number of bits in the bitmap * @return * Bitmap memory footprint measured in bytes on success, 0 on error */
| 145 | * Bitmap memory footprint measured in bytes on success, 0 on error |
| 146 | */ |
| 147 | static inline uint32_t |
| 148 | rte_bitmap_get_memory_footprint(uint32_t n_bits) { |
| 149 | /* Check input arguments */ |
| 150 | if (n_bits == 0) { |
| 151 | return 0; |
| 152 | } |
| 153 | |
| 154 | return __rte_bitmap_get_memory_footprint(n_bits, NULL, NULL, NULL, NULL); |
| 155 | } |
| 156 | |
| 157 | /** |
| 158 | * Bitmap initialization |