diff options
author | Max <msuraev@sysmocom.de> | 2017-12-22 14:20:05 +0100 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2017-12-22 14:20:05 +0100 |
commit | 20c7c46bceac4969e420f2b0dd89448327914971 (patch) | |
tree | 6f864d1be95478bc00ff45715d1363c8c320b22a /src/pcu_utils.h | |
parent | 406a1f0acf63d88c197d1d29221294f9e27f774d (diff) |
Add tests for pcu_lsb()
This utility functions is used by TBF allocation routines and only
tested indirectly through allocation test. Let's add proper exhaustive
test which checks all uint8_t values.
This also requires adding missing include to pcu_utils.h
Change-Id: If08a7f0d31f0e5ad8a5efa5885880aed19c329ab
Diffstat (limited to 'src/pcu_utils.h')
-rw-r--r-- | src/pcu_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pcu_utils.h b/src/pcu_utils.h index 3a64a471..767771c3 100644 --- a/src/pcu_utils.h +++ b/src/pcu_utils.h @@ -16,6 +16,10 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +extern "C" { +#include <osmocom/gsm/gsm_utils.h> +} + inline int msecs_to_frames(int msecs) { return (msecs * (1024 * 1000 / 4615)) / 1024; } |