|
ROHC compression/decompression library
|
Compute the interpretation interval for LSB and W-LSB encoding. More...
#include <stdlib.h>#include <stdint.h>

Go to the source code of this file.
Functions | |
| void | f (const uint32_t v_ref, const size_t k, const int32_t p, uint32_t *const min, uint32_t *const max) |
| The f function as defined in the LSB calculation algorithm. | |
Compute the interpretation interval for LSB and W-LSB encoding.
| void f | ( | const uint32_t | v_ref, |
| const size_t | k, | ||
| const int32_t | p, | ||
| uint32_t *const | min, | ||
| uint32_t *const | max | ||
| ) |
The f function as defined in the LSB calculation algorithm.
Find out the interval
for a given k. See 4.5.1 in the RFC 3095.
| v_ref | The reference value |
| k | The number of least significant bits of the value that are transmitted |
| p | The shift parameter (may be negative) |
| min | OUT: The lower limit of the interval |
| max | OUT: The upper limit of the interval |
Referenced by d_ip_id_decode(), and d_lsb_decode32().
1.7.6.1