[SLOF] [PATCH v5 04/23] fix code style in byteorder.h
Nikunj A Dadhania
nikunj at linux.vnet.ibm.com
Fri Jan 29 22:19:04 AEDT 2016
Signed-off-by: Nikunj A Dadhania <nikunj at linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth at redhat.com>
---
include/byteorder.h | 18 ++++++------------
1 file changed, 6 insertions(+), 12 deletions(-)
diff --git a/include/byteorder.h b/include/byteorder.h
index 60ca672..8ae680f 100644
--- a/include/byteorder.h
+++ b/include/byteorder.h
@@ -19,38 +19,32 @@
#include <stdint.h>
-static inline uint16_t
-bswap_16 (uint16_t x)
+static inline uint16_t bswap_16 (uint16_t x)
{
return __builtin_bswap16(x);
}
-static inline uint32_t
-bswap_32 (uint32_t x)
+static inline uint32_t bswap_32 (uint32_t x)
{
return __builtin_bswap32(x);
}
-static inline uint64_t
-bswap_64 (uint64_t x)
+static inline uint64_t bswap_64 (uint64_t x)
{
return __builtin_bswap64(x);
}
-static inline void
-bswap_16p (uint16_t *x)
+static inline void bswap_16p (uint16_t *x)
{
*x = __builtin_bswap16(*x);
}
-static inline void
-bswap_32p (uint32_t *x)
+static inline void bswap_32p (uint32_t *x)
{
*x = __builtin_bswap32(*x);
}
-static inline void
-bswap_64p (uint64_t *x)
+static inline void bswap_64p (uint64_t *x)
{
*x = __builtin_bswap64(*x);
}
--
2.5.0
More information about the SLOF
mailing list