lib ring buffer must take private pointer copy before decrementing refcount
[lttng-modules.git] / ltt-endian.h
1 #ifndef _LTT_ENDIAN_H
2 #define _LTT_ENDIAN_H
3
4 /*
5 * ltt-endian.h
6 *
7 * Copyright 2010 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 *
9 * Dual LGPL v2.1/GPL v2 license.
10 */
11
12 #ifdef __KERNEL__
13 # include <asm/byteorder.h>
14 # ifdef __BIG_ENDIAN
15 # define __BYTE_ORDER __BIG_ENDIAN
16 # elif defined(__LITTLE_ENDIAN)
17 # define __BYTE_ORDER __LITTLE_ENDIAN
18 # else
19 # error "unknown endianness"
20 # endif
21 #ifndef __BIG_ENDIAN
22 # define __BIG_ENDIAN 4321
23 #endif
24 #ifndef __LITTLE_ENDIAN
25 # define __LITTLE_ENDIAN 1234
26 #endif
27 #else
28 # include <endian.h>
29 #endif
30
31 #endif /* _LTT_ENDIAN_H */
This page took 0.030182 seconds and 4 git commands to generate.