Line 0
Link Here
|
|
|
1 |
--- libctf/swap.h.orig 2019-09-09 13:19:45 UTC |
2 |
+++ libctf/swap.h |
3 |
@@ -28,13 +28,13 @@ |
4 |
#else |
5 |
|
6 |
/* Provide our own versions of the byteswap functions. */ |
7 |
-inline uint16_t |
8 |
+static inline uint16_t |
9 |
bswap_16 (uint16_t v) |
10 |
{ |
11 |
return ((v >> 8) & 0xff) | ((v & 0xff) << 8); |
12 |
} |
13 |
|
14 |
-inline uint32_t |
15 |
+static inline uint32_t |
16 |
bswap_32 (uint32_t v) |
17 |
{ |
18 |
return ( ((v & 0xff000000) >> 24) |
19 |
@@ -43,13 +43,13 @@ bswap_32 (uint32_t v) |
20 |
| ((v & 0x000000ff) << 24)); |
21 |
} |
22 |
|
23 |
-inline uint64_t |
24 |
+static inline uint64_t |
25 |
bswap_identity_64 (uint64_t v) |
26 |
{ |
27 |
return v; |
28 |
} |
29 |
|
30 |
-inline uint64_t |
31 |
+static inline uint64_t |
32 |
bswap_64 (uint64_t v) |
33 |
{ |
34 |
return ( ((v & 0xff00000000000000ULL) >> 56) |