diff options
Diffstat (limited to 'tests/conv/conv.h')
-rw-r--r-- | tests/conv/conv.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/conv/conv.h b/tests/conv/conv.h new file mode 100644 index 00000000..676c5aff --- /dev/null +++ b/tests/conv/conv.h @@ -0,0 +1,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); |