Browse Source

Explicitly annotate use of GNU extension (-Wpedantic)

pull/1963/head
Andrew Waterman 12 months ago
parent
commit
01d9b06f3c
  1. 4
      fesvr/byteorder.h

4
fesvr/byteorder.h

@ -16,8 +16,8 @@ static inline int32_t swap(int32_t n) { return int32_t(swap(uint32_t(n))); }
static inline int64_t swap(int64_t n) { return int64_t(swap(uint64_t(n))); }
#ifdef HAVE_INT128
typedef __int128 int128_t;
typedef unsigned __int128 uint128_t;
__extension__ typedef __int128 int128_t;
__extension__ typedef unsigned __int128 uint128_t;
static inline uint128_t swap(uint128_t n) { return (uint128_t(swap(uint64_t(n))) << 64) | swap(uint64_t(n >> 64)); }
static inline int128_t swap(int128_t n) { return int128_t(swap(uint128_t(n))); }
#endif

Loading…
Cancel
Save