Skip to content

Commit 1429132

Browse files
committed
Merge #11140: Trivial: Improve #endif comments
ac1cf8d Trivial: Improve #endif comments (danra) Pull request description: Improve the #endif comments for the '#if HAVE_DECL_BSWAP_XX == 0' preprocessor conditions, so each shows the full condition which it closes. Tree-SHA512: f533311fa48cb2f46f6490b6c965ad5f8861dcfad70c56d70e31fa989b422880c78b2dd6f24f648b19d3a22f767606e0de5cf1cb71445012b42c97ac2149295e
2 parents 5197100 + ac1cf8d commit 1429132

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/compat/byteswap.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ inline uint16_t bswap_16(uint16_t x)
3737
{
3838
return (x >> 8) | (x << 8);
3939
}
40-
#endif // HAVE_DECL_BSWAP16
40+
#endif // HAVE_DECL_BSWAP16 == 0
4141

4242
#if HAVE_DECL_BSWAP_32 == 0
4343
inline uint32_t bswap_32(uint32_t x)
4444
{
4545
return (((x & 0xff000000U) >> 24) | ((x & 0x00ff0000U) >> 8) |
4646
((x & 0x0000ff00U) << 8) | ((x & 0x000000ffU) << 24));
4747
}
48-
#endif // HAVE_DECL_BSWAP32
48+
#endif // HAVE_DECL_BSWAP32 == 0
4949

5050
#if HAVE_DECL_BSWAP_64 == 0
5151
inline uint64_t bswap_64(uint64_t x)
@@ -59,7 +59,7 @@ inline uint64_t bswap_64(uint64_t x)
5959
| ((x & 0x000000000000ff00ull) << 40)
6060
| ((x & 0x00000000000000ffull) << 56));
6161
}
62-
#endif // HAVE_DECL_BSWAP64
62+
#endif // HAVE_DECL_BSWAP64 == 0
6363

6464
#endif // defined(__APPLE__)
6565

0 commit comments

Comments
 (0)