diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-15 11:29:05 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-07-15 11:29:05 +0200 |
commit | 324a8a71bb7d9e4f8bc49b6bc47efaf9fb58282e (patch) | |
tree | bd2d48a139bfbe869f4f49359b63097931a45e7b /backend/kvs20xx.h | |
parent | 2ca8a81bd0d99fe4d75c229d0e988d8ef710285f (diff) | |
parent | 1edb02101a9306fc711cd422ed507d18165b1691 (diff) |
Merge branch 'release/experimental/1.0.27-1_experimental1'experimental/1.0.27-1_experimental1
Diffstat (limited to 'backend/kvs20xx.h')
-rw-r--r-- | backend/kvs20xx.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/backend/kvs20xx.h b/backend/kvs20xx.h index 9bc833d..442f1c7 100644 --- a/backend/kvs20xx.h +++ b/backend/kvs20xx.h @@ -168,6 +168,12 @@ swap_bytes32 (u32 x) (x & (u32) 0x0000ff00UL) << 8 | (x & (u32) 0x00ff0000UL) >> 8; } +static inline void +copy16 (u8 * p, u16 x) +{ + memcpy (p, (u8 *) &x, sizeof (x)); +} + #if __BYTE_ORDER == __BIG_ENDIAN static inline void set24 (u8 * p, u32 x) |