projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tracepoint API namespacing ust-endian
[lttng-ust.git]
/
src
/
common
/
bitfield.h
diff --git
a/src/common/bitfield.h
b/src/common/bitfield.h
index 7cb5b32d1eca8f612877449d584fcf57de9e6980..63ae1efdf540e1421dc1defaceeaa1780b7ba69b 100644
(file)
--- a/
src/common/bitfield.h
+++ b/
src/common/bitfield.h
@@
-10,7
+10,7
@@
#include <stdint.h> /* C99 5.2.4.2 Numerical limits */
#include <limits.h> /* C99 5.2.4.2 Numerical limits */
#include <stdbool.h> /* C99 7.16 bool type */
#include <stdint.h> /* C99 5.2.4.2 Numerical limits */
#include <limits.h> /* C99 5.2.4.2 Numerical limits */
#include <stdbool.h> /* C99 7.16 bool type */
-#include <lttng/ust-endian.h> /* Non-standard
BIG_ENDIAN, LITTLE_ENDIAN,
BYTE_ORDER */
+#include <lttng/ust-endian.h> /* Non-standard
LTTNG_UST_BIG_ENDIAN, LTTNG_UST_LITTLE_ENDIAN, LTTNG_UST_
BYTE_ORDER */
/*
* This header strictly follows the C99 standard, except for use of the
/*
* This header strictly follows the C99 standard, except for use of the
@@
-310,7
+310,7
@@
do { \
* bt_bitfield_write_be - write integer to a bitfield in big endian
*/
* bt_bitfield_write_be - write integer to a bitfield in big endian
*/
-#if (
BYTE_ORDER ==
LITTLE_ENDIAN)
+#if (
LTTNG_UST_BYTE_ORDER == LTTNG_UST_
LITTLE_ENDIAN)
#define bt_bitfield_write(ptr, type, start, length, v) \
_bt_bitfield_write_le(ptr, type, start, length, v)
#define bt_bitfield_write(ptr, type, start, length, v) \
_bt_bitfield_write_le(ptr, type, start, length, v)
@@
-321,7
+321,7
@@
do { \
#define bt_bitfield_write_be(ptr, type, start, length, v) \
_bt_bitfield_write_be(ptr, unsigned char, start, length, v)
#define bt_bitfield_write_be(ptr, type, start, length, v) \
_bt_bitfield_write_be(ptr, unsigned char, start, length, v)
-#elif (
BYTE_ORDER ==
BIG_ENDIAN)
+#elif (
LTTNG_UST_BYTE_ORDER == LTTNG_UST_
BIG_ENDIAN)
#define bt_bitfield_write(ptr, type, start, length, v) \
_bt_bitfield_write_be(ptr, type, start, length, v)
#define bt_bitfield_write(ptr, type, start, length, v) \
_bt_bitfield_write_be(ptr, type, start, length, v)
@@
-332,7
+332,7
@@
do { \
#define bt_bitfield_write_be(ptr, type, start, length, v) \
_bt_bitfield_write_be(ptr, type, start, length, v)
#define bt_bitfield_write_be(ptr, type, start, length, v) \
_bt_bitfield_write_be(ptr, type, start, length, v)
-#else /* (BYTE_ORDER == PDP_ENDIAN) */
+#else /* (
LTTNG_UST_
BYTE_ORDER == PDP_ENDIAN) */
#error "Byte order not supported"
#error "Byte order not supported"
@@
-478,7
+478,7
@@
do { \
* bt_bitfield_read_be - read integer from a bitfield in big endian
*/
* bt_bitfield_read_be - read integer from a bitfield in big endian
*/
-#if (
BYTE_ORDER ==
LITTLE_ENDIAN)
+#if (
LTTNG_UST_BYTE_ORDER == LTTNG_UST_
LITTLE_ENDIAN)
#define bt_bitfield_read(ptr, type, start, length, vptr) \
_bt_bitfield_read_le(ptr, type, start, length, vptr)
#define bt_bitfield_read(ptr, type, start, length, vptr) \
_bt_bitfield_read_le(ptr, type, start, length, vptr)
@@
-489,7
+489,7
@@
do { \
#define bt_bitfield_read_be(ptr, type, start, length, vptr) \
_bt_bitfield_read_be(ptr, unsigned char, start, length, vptr)
#define bt_bitfield_read_be(ptr, type, start, length, vptr) \
_bt_bitfield_read_be(ptr, unsigned char, start, length, vptr)
-#elif (
BYTE_ORDER ==
BIG_ENDIAN)
+#elif (
LTTNG_UST_BYTE_ORDER == LTTNG_UST_
BIG_ENDIAN)
#define bt_bitfield_read(ptr, type, start, length, vptr) \
_bt_bitfield_read_be(ptr, type, start, length, vptr)
#define bt_bitfield_read(ptr, type, start, length, vptr) \
_bt_bitfield_read_be(ptr, type, start, length, vptr)
@@
-500,7
+500,7
@@
do { \
#define bt_bitfield_read_be(ptr, type, start, length, vptr) \
_bt_bitfield_read_be(ptr, type, start, length, vptr)
#define bt_bitfield_read_be(ptr, type, start, length, vptr) \
_bt_bitfield_read_be(ptr, type, start, length, vptr)
-#else /* (BYTE_ORDER == PDP_ENDIAN) */
+#else /* (
LTTNG_UST_
BYTE_ORDER == PDP_ENDIAN) */
#error "Byte order not supported"
#error "Byte order not supported"
This page took
0.024392 seconds
and
4
git commands to generate.