libosmocore  1.5.1
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  * You should have received a copy of the GNU General Public License along
21  * with this program; if not, write to the Free Software Foundation, Inc.,
22  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23  *
24  */
25 
26 #pragma once
27 
32 #include <stdint.h>
33 #include <stdbool.h>
34 
35 #include <osmocom/core/bitvec.h>
36 
37 
38 int osmo_t4_encode(struct bitvec *bv);
39 
osmo_t4_encode
int osmo_t4_encode(struct bitvec *bv)
encode bit vector in-place using T4 encoding Assumes MSB first encoding.
Definition: bitcomp.c:316
bitvec
structure describing a bit vector
Definition: bitvec.h:46
bitvec.h