libosmocore  1.9.0.142-9cce.202401252026
Osmocom core library
bitcomp.h
Go to the documentation of this file.
1 
3 /*
4  * (C) 2016 by sysmocom - s.f.m.c. GmbH
5  * Author: Max Suraev <msuraev@sysmocom.de>
6  * All Rights Reserved
7  *
8  * SPDX-License-Identifier: GPL-2.0+
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  */
21 
22 #pragma once
23 
28 #include <stdint.h>
29 #include <stdbool.h>
30 
31 #include <osmocom/core/bitvec.h>
32 
33 
34 int osmo_t4_encode(struct bitvec *bv);
35 
int osmo_t4_encode(struct bitvec *bv)
encode bit vector in-place using T4 encoding Assumes MSB first encoding.
Definition: bitcomp.c:312
structure describing a bit vector
Definition: bitvec.h:41