42 #define rohc_max(value1, value2) \ 43 ( ((value1) >= (value2)) ? (value1) : (value2) ) 46 #define rohc_min(value1, value2) \ 47 ( ((value1) <= (value2)) ? (value1) : (value2) ) 50 static inline unsigned int rohc_b2u(
const bool boolean)
51 __attribute__((warn_unused_result,
const));
54 __attribute__((warn_unused_result,
const));
56 __attribute__((warn_unused_result,
const));
58 __attribute__((warn_unused_result,
const));
60 __attribute__((warn_unused_result,
const));
71 static inline unsigned int rohc_b2u(
const bool boolean)
73 return (
boolean ? 1 : 0);
static unsigned int rohc_b2u(const bool boolean)
Convert the given boolean value to one unsigned integer.
Definition: rohc_utils.h:71
uint32_t rohc_hton32(const uint32_t host32)
Convert a 32-bit long integer from host to network byte orders.
Definition: rohc_utils.c:88
uint32_t rohc_ntoh32(const uint32_t net32)
Convert a 32-bit long integer from network to host byte orders.
Definition: rohc_utils.c:55
Definition: rohc_utils.h:37
Definition: rohc_utils.h:36
Definition: rohc_utils.h:35
uint16_t rohc_ntoh16(const uint16_t net16)
Convert a 16-bit short integer from network to host byte orders.
Definition: rohc_utils.c:71
rohc_tristate_t
Definition: rohc_utils.h:33
uint16_t rohc_hton16(const uint16_t host16)
Convert a 16-bit short integer from host to network byte orders.
Definition: rohc_utils.c:104