ae2f_docs
Loading...
Searching...
No Matches
scale.c
1#include "../../lib/vec.auto.h"
2#include "../../lib/util/scale.h"
3#include <assert.h>
4
5int main(void) {
6 x_aclspv_vec alloc;
7 _aclspv_init_vec(alloc);
8 assert(init_scale(&alloc, 0));
9
10 assert(mk_scale_from_vec(&alloc, 0));
11
12#if 1
13 assert(mk_scale_from_vec(&alloc, 0));
14 assert(mk_scale_from_vec(&alloc, 0));
15 assert(mk_scale_from_vec(&alloc, 0));
16 assert(mk_scale_from_vec(&alloc, 0));
17#endif
18
19 assert(get_scale_from_vec(&alloc, 0));
20 assert(get_scale_from_vec(&alloc, 1));
21 assert(get_scale_from_vec(&alloc, 2));
22 assert(get_scale_from_vec(&alloc, 3));
23
24 _aclspv_stop_vec(_aclspv_free, alloc);
25
26 return 0;
27}