File: conv.h

package info (click to toggle)
libosmocore 1.11.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,796 kB
  • sloc: ansic: 125,901; python: 2,193; makefile: 1,769; sh: 529; exp: 63; xml: 19
file content (16 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#define MAX_LEN_BITS	2048
#define MAX_LEN_BYTES	(2048 / 8)

struct conv_test_vector {
	const char *name;
	const struct osmo_conv_code *code;
	int in_len;
	int out_len;
	int has_vec;
	pbit_t vec_in[MAX_LEN_BYTES];
	pbit_t vec_out[MAX_LEN_BYTES];
};

int do_check(const struct conv_test_vector *test);