libyuv/unit_test
Frank Barchard 0b0a891cb2 Change TestScaleSumSamples_C test to allow for some float error in sum.
The sum of floats can optimize differently with vectorization, producing
a different result between NEON and C.
Adjust the unittest to allow for some difference in the sum.

The NEON version is 8 samples at a time, so the test now rounds up
the number of values to multiple of 8.

TBR=kjellander@chromium.org
Bug: libyuv:717
Test: LibYUVPlanarTest.TestScaleSumSamples_Opt


Change-Id: I2a0783780c7e0f240f7a8e4700b2a4d3e6b52d87
Reviewed-on: https://chromium-review.googlesource.com/673708
Reviewed-by: Cheng Wang <wangcheng@google.com>
2017-09-22 18:58:11 +00:00
..
testdata Detect asimd as same as Neon for Arm features. Used on Juno aarch64 linux. 2014-09-22 18:30:17 +00:00
basictypes_test.cc break up unittests into categories 2015-10-13 16:01:07 -07:00
color_test.cc Step thru full color test by increments of 5 for better test speed. 2017-09-19 02:01:53 +00:00
compare_test.cc Move compare functions into a unittest class 2017-06-19 19:39:10 +00:00
convert_test.cc Roll chromium_revision da7cc8ca4c..ce95e5d83f (465147:465389) 2017-04-18 22:40:59 +00:00
cpu_test.cc lint warning fixes for CpuID 2017-05-25 22:00:17 +00:00
cpu_thread_test.cc MaskCpuFlags return cpuinfo so InitCpuFlags can call it 2017-05-24 22:27:03 +00:00
math_test.cc clang-format libyuv 2016-11-07 17:37:23 -08:00
planar_test.cc Change TestScaleSumSamples_C test to allow for some float error in sum. 2017-09-22 18:58:11 +00:00
rotate_argb_test.cc clang-format libyuv 2016-11-07 17:37:23 -08:00
rotate_test.cc clang-format libyuv 2016-11-07 17:37:23 -08:00
scale_argb_test.cc scale test clipping code unused cpu parameters removed 2017-02-14 03:26:50 +00:00
scale_test.cc Add MaskCpuFlags(benchmark_cpu_info_) to unittest initialization 2017-09-12 19:13:06 +00:00
unit_test.cc Add MaskCpuFlags(benchmark_cpu_info_) to unittest initialization 2017-09-12 19:13:06 +00:00
unit_test.h scale float samples and return max value 2017-08-04 23:34:30 +00:00
video_common_test.cc clang-format libyuv 2016-11-07 17:37:23 -08:00