diff options
author | Frank Barchard <fbarchard@google.com> | 2017-09-18 18:57:04 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2017-09-19 02:01:53 +0000 |
commit | efbf15754a1efb8e378b1873eb213d5c8931a3ba (patch) | |
tree | 940a5fdbd0116370630c22ac6898b266165081ed /source/cpu_id.cc | |
parent | 3886069dc96cfb3ebd39c11befebb196382eed61 (diff) | |
download | libyuv-efbf15754a1efb8e378b1873eb213d5c8931a3ba.tar.gz |
Step thru full color test by increments of 5 for better test speed.
Full color test is the slowest of the unittests, and not catching any
additional bugs at the moment. Step thru range of 0 to 255 in steps of
5 to speed up the test. 255 is 3 * 5 * 17, so any of those primes would
hit 0 and 255 exactly.
Was LibYUVColorTest.TestFullYUV (896 ms)
Now LibYUVColorTest.TestFullYUV (212 ms)
TBR=kjellander@chromium.org
Bug: libyuv:736
Test: LibYUVColorTest.TestFullYUV
Change-Id: I5b55fb07ada0dc7bdc3c3c20569d36bf09bb3804
Reviewed-on: https://chromium-review.googlesource.com/672064
Commit-Queue: Frank Barchard <fbarchard@google.com>
Reviewed-by: Frank Barchard <fbarchard@google.com>
Diffstat (limited to 'source/cpu_id.cc')
-rw-r--r-- | source/cpu_id.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cpu_id.cc b/source/cpu_id.cc index 12e03345..d9bb9ec3 100644 --- a/source/cpu_id.cc +++ b/source/cpu_id.cc @@ -124,7 +124,7 @@ void CpuId(int eax, int ecx, int* cpu_info) { int GetXCR0() { int xcr0 = 0; #if defined(_MSC_FULL_VER) && (_MSC_FULL_VER >= 160040219) - xcr0 = (int) _xgetbv(0); // VS2010 SP1 required. NOLINT + xcr0 = (int)_xgetbv(0); // VS2010 SP1 required. NOLINT #elif defined(__i386__) || defined(__x86_64__) asm(".byte 0x0f, 0x01, 0xd0" : "=a"(xcr0) : "c"(0) : "%edx"); #endif // defined(__i386__) || defined(__x86_64__) |