Attention is currently required from: laforge, neels.
pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/libosmocore/+/36913?usp=email )
Change subject: add jhash.h, copied from linux/jhash.h ......................................................................
Patch Set 2:
(1 comment)
File include/osmocom/core/jhash.h:
https://gerrit.osmocom.org/c/libosmocore/+/36913/comment/ed62bd9e_b99ace05 PS1, Line 100: c += osmo_load32le(k + 8);
(actually this also assumes a little-endian CPU. […]
Why don't you simply copy the following code in this same file instead of changing it?
struct __una_u32 { u32 x; } __packed;
static inline u32 __get_unaligned_cpu32(const void *p) { const struct __una_u32 *ptr = (const struct __una_u32 *)p; return ptr->x; }
Better change the prefix to osmo_.