| commit | 8c02a36953e575b4c8bc79c9be3d94ef2ec6ec81 | [log] [tgz] |
|---|---|---|
| author | Johann <johannkoenig@google.com> | Fri Apr 15 11:35:56 2016 -0700 |
| committer | Johann Koenig <johannkoenig@chromium.org> | Thu Apr 21 22:28:21 2016 +0000 |
| tree | 148ec3334a259e5733822b78391fb20ed90a4e1d | |
| parent | c59c5cbefff9d833158cc25d9f2ae33f27977cc7 [diff] [blame] |
hadamard 8x8 test The order of the output structure is not currently important. BUG=https://bugs.chromium.org/p/webm/issues/detail?id=1021 Change-Id: Ibc0006d569675db6c5060c4529f5d9e73f2e96a6
diff --git a/test/acm_random.h b/test/acm_random.h index ff5c93e..a29ced2 100644 --- a/test/acm_random.h +++ b/test/acm_random.h
@@ -32,6 +32,12 @@ return (value >> 15) & 0xffff; } + int16_t Rand9Signed(void) { + // Use 9 bits: values between 255 (0x0FF) and -256 (0x100). + const uint32_t value = random_.Generate(512); + return static_cast<int16_t>(value - 256); + } + uint8_t Rand8(void) { const uint32_t value = random_.Generate(testing::internal::Random::kMaxRange);