This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/21563 ) Change subject: log2.h: Use uintXX_t instead of kernel specific types ...................................................................... log2.h: Use uintXX_t instead of kernel specific types Change-Id: Ieb872551bdbe514f2c77f9aeb2b9ee42f6573909 --- M include/osmocom/core/log2.h 1 file changed, 3 insertions(+), 2 deletions(-) Approvals: laforge: Looks good to me, approved; Verified diff --git a/include/osmocom/core/log2.h b/include/osmocom/core/log2.h index dfe9d37..035ce86 100644 --- a/include/osmocom/core/log2.h +++ b/include/osmocom/core/log2.h @@ -6,6 +6,7 @@ */ #pragma once +#include <stdint.h> #define __always_inline inline __attribute__((always_inline)) /* from linux/asm-generic/bitops/{fls,fls64}.h - could later be enhanced @@ -58,9 +59,9 @@ * set bit if value is nonzero. The last (most significant) bit is * at position 64. */ -static __always_inline int fls64(__u64 x) +static __always_inline int fls64(uint64_t x) { - __u32 h = x >> 32; + uint32_t h = x >> 32; if (h) return fls(h) + 32; return fls(x); -- To view, visit https://gerrit.osmocom.org/c/libosmocore/+/21563 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: libosmocore Gerrit-Branch: master Gerrit-Change-Id: Ieb872551bdbe514f2c77f9aeb2b9ee42f6573909 Gerrit-Change-Number: 21563 Gerrit-PatchSet: 2 Gerrit-Owner: laforge <laforge at osmocom.org> Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-CC: Jenkins Builder Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201206/7a5f445a/attachment.htm>