diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-04 19:19:45 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-12-04 19:19:45 +0000 |
commit | b39ade83c2eafc231d239c2083b65c84a79bb134 (patch) | |
tree | 32932ea5a3d30a4f04580c88f936a91d972aad3f /qemu-common.h | |
parent | 9b3469cc9a0bfb016fd241b7b99c1014e6a64fe5 (diff) | |
download | qemu-b39ade83c2eafc231d239c2083b65c84a79bb134.zip qemu-b39ade83c2eafc231d239c2083b65c84a79bb134.tar.gz qemu-b39ade83c2eafc231d239c2083b65c84a79bb134.tar.bz2 |
Introduce fls() helper
This is needed for virtio. The implementation is originally from
Marcelo Tosatti.
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5868 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-common.h')
-rw-r--r-- | qemu-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h index 74eaa4d..308847a 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -94,6 +94,7 @@ char *pstrcat(char *buf, int buf_size, const char *s); int strstart(const char *str, const char *val, const char **ptr); int stristart(const char *str, const char *val, const char **ptr); time_t mktimegm(struct tm *tm); +int fls(int i); #define qemu_isalnum(c) isalnum((unsigned char)(c)) #define qemu_isalpha(c) isalpha((unsigned char)(c)) |