Merge "fix unit test failure on win32 vs2008 build"
This commit is contained in:
commit
e3c92bd21e
@ -320,7 +320,7 @@ class FwdTrans16x16Test : public ::testing::TestWithParam<int> {
|
|||||||
TEST_P(FwdTrans16x16Test, AccuracyCheck) {
|
TEST_P(FwdTrans16x16Test, AccuracyCheck) {
|
||||||
ACMRandom rnd(ACMRandom::DeterministicSeed());
|
ACMRandom rnd(ACMRandom::DeterministicSeed());
|
||||||
int max_error = 0;
|
int max_error = 0;
|
||||||
double total_error = 0;
|
int total_error = 0;
|
||||||
const int count_test_block = 10000;
|
const int count_test_block = 10000;
|
||||||
for (int i = 0; i < count_test_block; ++i) {
|
for (int i = 0; i < count_test_block; ++i) {
|
||||||
DECLARE_ALIGNED_ARRAY(16, int16_t, test_input_block, 256);
|
DECLARE_ALIGNED_ARRAY(16, int16_t, test_input_block, 256);
|
||||||
|
@ -136,7 +136,7 @@ TEST_P(FwdTrans4x4Test, RoundTripErrorCheck) {
|
|||||||
ACMRandom rnd(ACMRandom::DeterministicSeed());
|
ACMRandom rnd(ACMRandom::DeterministicSeed());
|
||||||
|
|
||||||
int max_error = 0;
|
int max_error = 0;
|
||||||
double total_error = 0;
|
int total_error = 0;
|
||||||
const int count_test_block = 1000000;
|
const int count_test_block = 1000000;
|
||||||
for (int i = 0; i < count_test_block; ++i) {
|
for (int i = 0; i < count_test_block; ++i) {
|
||||||
DECLARE_ALIGNED_ARRAY(16, int16_t, test_input_block, 16);
|
DECLARE_ALIGNED_ARRAY(16, int16_t, test_input_block, 16);
|
||||||
|
@ -148,7 +148,7 @@ TEST_P(FwdTrans8x8Test, SignBiasCheck) {
|
|||||||
TEST_P(FwdTrans8x8Test, RoundTripErrorCheck) {
|
TEST_P(FwdTrans8x8Test, RoundTripErrorCheck) {
|
||||||
ACMRandom rnd(ACMRandom::DeterministicSeed());
|
ACMRandom rnd(ACMRandom::DeterministicSeed());
|
||||||
int max_error = 0;
|
int max_error = 0;
|
||||||
double total_error = 0;
|
int total_error = 0;
|
||||||
const int count_test_block = 100000;
|
const int count_test_block = 100000;
|
||||||
for (int i = 0; i < count_test_block; ++i) {
|
for (int i = 0; i < count_test_block; ++i) {
|
||||||
DECLARE_ALIGNED_ARRAY(16, int16_t, test_input_block, 64);
|
DECLARE_ALIGNED_ARRAY(16, int16_t, test_input_block, 64);
|
||||||
@ -199,7 +199,7 @@ TEST_P(FwdTrans8x8Test, RoundTripErrorCheck) {
|
|||||||
TEST_P(FwdTrans8x8Test, ExtremalCheck) {
|
TEST_P(FwdTrans8x8Test, ExtremalCheck) {
|
||||||
ACMRandom rnd(ACMRandom::DeterministicSeed());
|
ACMRandom rnd(ACMRandom::DeterministicSeed());
|
||||||
int max_error = 0;
|
int max_error = 0;
|
||||||
double total_error = 0;
|
int total_error = 0;
|
||||||
const int count_test_block = 100000;
|
const int count_test_block = 100000;
|
||||||
for (int i = 0; i < count_test_block; ++i) {
|
for (int i = 0; i < count_test_block; ++i) {
|
||||||
DECLARE_ALIGNED_ARRAY(16, int16_t, test_input_block, 64);
|
DECLARE_ALIGNED_ARRAY(16, int16_t, test_input_block, 64);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user