Commit fef2fa72 authored by Sebastien Alaiwan's avatar Sebastien Alaiwan

tx tests: avoid dynamic memory allocation

Change-Id: I6534f21631b0f5cf66034c4ced9ef2db408b996c
parent bc2e01c9
...@@ -52,10 +52,10 @@ class TransTestBase { ...@@ -52,10 +52,10 @@ class TransTestBase {
protected: protected:
void RunInvAccuracyCheck() { void RunInvAccuracyCheck() {
tran_low_t *input = new tran_low_t[txfm_size_]; tran_low_t input[64];
tran_low_t *output = new tran_low_t[txfm_size_]; tran_low_t output[64];
double *ref_input = new double[txfm_size_]; double ref_input[64];
double *ref_output = new double[txfm_size_]; double ref_output[64];
ACMRandom rnd(ACMRandom::DeterministicSeed()); ACMRandom rnd(ACMRandom::DeterministicSeed());
const int count_test_block = 5000; const int count_test_block = 5000;
...@@ -74,11 +74,6 @@ class TransTestBase { ...@@ -74,11 +74,6 @@ class TransTestBase {
max_error_); max_error_);
} }
} }
delete[] input;
delete[] output;
delete[] ref_input;
delete[] ref_output;
} }
double max_error_; double max_error_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment