MCPcopy Create free account
hub / github.com/cwida/ALP / SetUp

Method SetUp

test/test_alp_sample.cpp:52–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 alp::bw_t bit_width {};
51
52 void SetUp() override {
53 intput_buf = new double[alp::config::VECTOR_SIZE];
54 sample_buf = new double[alp::config::VECTOR_SIZE];
55 exception_buf = new double[alp::config::VECTOR_SIZE];
56 decoded_buf = new double[alp::config::VECTOR_SIZE];
57 glue_buf = new double[alp::config::VECTOR_SIZE];
58 //
59
60 right_buf = new uint64_t[alp::config::VECTOR_SIZE];
61 ffor_right_buf = new uint64_t[alp::config::VECTOR_SIZE];
62 unffor_right_buf = new uint64_t[alp::config::VECTOR_SIZE];
63
64 //
65 encoded_buf = new int64_t[alp::config::VECTOR_SIZE];
66 base_buf = new int64_t[alp::config::VECTOR_SIZE];
67 ffor_buf = new int64_t[alp::config::VECTOR_SIZE];
68
69 //
70 rd_exc_arr = new uint16_t[alp::config::VECTOR_SIZE];
71 pos_arr = new uint16_t[alp::config::VECTOR_SIZE];
72 exc_c_arr = new uint16_t[alp::config::VECTOR_SIZE];
73 unffor_arr = new int64_t[alp::config::VECTOR_SIZE];
74 left_arr = new uint16_t[alp::config::VECTOR_SIZE];
75 ffor_left_arr = new uint16_t[alp::config::VECTOR_SIZE];
76 unffor_left_arr = new uint16_t[alp::config::VECTOR_SIZE];
77 }
78
79 ~alp_test() override {
80 delete[] intput_buf;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected