summaryrefslogtreecommitdiffstats
path: root/tests/conv/conv.h
blob: 676c5affc7ccdefae4a2f1baf026680e02c44ac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#pragma once

#define MAX_LEN_BITS	512
#define MAX_LEN_BYTES	(512/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);