25 #ifndef ROHC_COMMON_INTERVAL_H
26 #define ROHC_COMMON_INTERVAL_H
45 #define ROHC_LSB_SHIFT_TCP_TS_1B ROHC_LSB_SHIFT_SN
46 #define ROHC_LSB_SHIFT_TCP_TS_2B ROHC_LSB_SHIFT_SN
49 #define ROHC_LSB_SHIFT_TCP_ACK_SCALED ROHC_LSB_SHIFT_TCP_TTL
131 __attribute__((warn_unused_result,
const));
136 __attribute__((warn_unused_result));
141 __attribute__((warn_unused_result));
146 __attribute__((warn_unused_result));
173 computed_p = (1 << (k - 2)) - 1;
188 computed_p = (1 << (k - 5)) - 1;
rohc_lsb_shift_t
the different values of the shift parameter of the LSB algorithm
Definition: interval.h:42
Definition: interval.h:55
uint16_t min
Definition: interval.h:99
Definition: interval.h:58
Definition: interval.h:50
Definition: interval.h:57
An interval of 8-bit values.
Definition: interval.h:76
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:157
Definition: interval.h:47
An interval of 32-bit values.
Definition: interval.h:118
uint8_t max
Definition: interval.h:79
Definition: interval.h:51
struct rohc_interval8 rohc_f_8bits(const uint8_t v_ref, const size_t k, const rohc_lsb_shift_t p)
The f function as defined in LSB encoding for 8-bit fields.
Definition: interval.c:48
uint8_t min
Definition: interval.h:78
struct rohc_interval16 rohc_f_16bits(const uint16_t v_ref, const size_t k, const rohc_lsb_shift_t p)
The f function as defined in LSB encoding for 16-bit fields.
Definition: interval.c:84
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:120
Definition: interval.h:52
Definition: interval.h:56
Definition: interval.h:53
Definition: interval.h:48
uint32_t max
Definition: interval.h:121
An interval of 16-bit values.
Definition: interval.h:97
uint16_t max
Definition: interval.h:100
uint32_t min
Definition: interval.h:120
Definition: interval.h:54
Definition: interval.h:44