25 #ifndef ROHC_COMMON_INTERVAL_H 26 #define ROHC_COMMON_INTERVAL_H 33 #define ROHC_WLSB_WIDTH_MAX 64U 48 #define ROHC_LSB_SHIFT_TCP_TS_1B ROHC_LSB_SHIFT_SN 49 #define ROHC_LSB_SHIFT_TCP_TS_2B ROHC_LSB_SHIFT_SN 52 #define ROHC_LSB_SHIFT_TCP_ACK_SCALED ROHC_LSB_SHIFT_TCP_TTL 134 __attribute__((warn_unused_result,
const));
139 __attribute__((warn_unused_result, const));
159 computed_p = (k <= 2 ? 0 : (1 << (k - 2)) - 1);
164 computed_p = (k <= 4 ? 1 : (1 << (k - 5)) - 1);
rohc_lsb_shift_t
the different values of the shift parameter of the LSB algorithm
Definition: interval.h:45
Definition: interval.h:58
uint16_t min
Definition: interval.h:102
Definition: interval.h:61
Definition: interval.h:53
Definition: interval.h:60
An interval of 8-bit values.
Definition: interval.h:79
static int32_t rohc_interval_compute_p(const size_t k, const rohc_lsb_shift_t p)
Compute the shift parameter p for the f function.
Definition: interval.h:150
Definition: interval.h:50
An interval of 32-bit values.
Definition: interval.h:121
uint8_t max
Definition: interval.h:82
Definition: interval.h:54
uint8_t min
Definition: interval.h:81
struct rohc_interval32 rohc_f_32bits(const uint32_t v_ref, const size_t k, const rohc_lsb_shift_t p)
The f function as defined in LSB encoding for 32-bit fields.
Definition: interval.c:48
Definition: interval.h:55
Definition: interval.h:59
Definition: interval.h:56
Definition: interval.h:51
uint32_t max
Definition: interval.h:124
An interval of 16-bit values.
Definition: interval.h:100
uint16_t max
Definition: interval.h:103
uint32_t min
Definition: interval.h:123
Definition: interval.h:57
Definition: interval.h:47