summaryrefslogtreecommitdiffstats
path: root/tests/conv/conv.h
blob: 0604859cd32e900fae2397a5a9ade0b5bd9db4b4 (plain)
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);