Parent: 62a112bd5200c5f538dc1b5a053086faadcfa1dd
Author: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2015-02-19 15:21:08
Tree: 83aff5df37cc530e0797294dbac39816546a9681
shared/utils: Add helpers for bitfield id generation For small unique id generation we may use bitfield since it is very fast and memory efficient. Helpers are added to generate id from 1 to 32 to utils.
Diffstat
| M | src/shared/util.c | | | 29 | +++++++++++++++++++++++++++++ |
| M | src/shared/util.h | | | 3 | +++ |
2 files changed, 32 insertions(+), 0 deletions(-)