Skip to content

Commit 3081762

Browse files
committed
Reformat whole repository using clang-format
1 parent c83464f commit 3081762

File tree

140 files changed

+26175
-24691
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+26175
-24691
lines changed

include/ipfixprobe/byte-utils.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ namespace ipxp {
4545
#if defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN
4646
static inline uint64_t swap_uint64(uint64_t value)
4747
{
48-
return value;
48+
return value;
4949
}
5050
#elif defined(__BYTE_ORDER) && __BYTE_ORDER == __LITTLE_ENDIAN
5151
static inline uint64_t swap_uint64(uint64_t value)
5252
{
53-
value = ((value << 8) & 0xFF00FF00FF00FF00ULL) | ((value >> 8) & 0x00FF00FF00FF00FFULL);
54-
value = ((value << 16) & 0xFFFF0000FFFF0000ULL) | ((value >> 16) & 0x0000FFFF0000FFFFULL);
55-
return (value << 32) | (value >> 32);
53+
value = ((value << 8) & 0xFF00FF00FF00FF00ULL) | ((value >> 8) & 0x00FF00FF00FF00FFULL);
54+
value = ((value << 16) & 0xFFFF0000FFFF0000ULL) | ((value >> 16) & 0x0000FFFF0000FFFFULL);
55+
return (value << 32) | (value >> 32);
5656
}
5757
#else
5858
#error "Please fix <endian.h>"

0 commit comments

Comments
 (0)