1 /* SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) */
2 #ifndef _LTTNG_ENDIAN_H
3 #define _LTTNG_ENDIAN_H
8 * Copyright (C) 2010-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
12 # include <asm/byteorder.h>
14 # define __BYTE_ORDER __BIG_ENDIAN
15 # elif defined(__LITTLE_ENDIAN)
16 # define __BYTE_ORDER __LITTLE_ENDIAN
18 # error "unknown endianness"
21 # define __BIG_ENDIAN 4321
23 #ifndef __LITTLE_ENDIAN
24 # define __LITTLE_ENDIAN 1234
30 #endif /* _LTTNG_ENDIAN_H */
This page took 0.030071 seconds and 4 git commands to generate.