Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
52889c10
Commit
52889c10
authored
Apr 22, 2016
by
James Zern
Committed by
Gerrit Code Review
Apr 22, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge "hadamard_test: align src/dst buffers"
parents
cf822223
9222d467
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
test/hadamard_test.cc
test/hadamard_test.cc
+6
-2
No files found.
test/hadamard_test.cc
View file @
52889c10
...
...
@@ -71,7 +71,9 @@ void reference_hadamard(const int16_t *a, int a_stride, int16_t *b) {
}
TEST_P
(
HadamardTest
,
CompareReferenceRandom
)
{
int16_t
a
[
64
],
b
[
64
],
b_ref
[
64
];
DECLARE_ALIGNED
(
16
,
int16_t
,
a
[
64
]);
DECLARE_ALIGNED
(
16
,
int16_t
,
b
[
64
]);
int16_t
b_ref
[
64
];
for
(
int
i
=
0
;
i
<
64
;
i
++
)
{
a
[
i
]
=
rnd_
.
Rand9Signed
();
}
...
...
@@ -88,7 +90,9 @@ TEST_P(HadamardTest, CompareReferenceRandom) {
}
TEST_P
(
HadamardTest
,
VaryStride
)
{
int16_t
a
[
64
*
8
],
b
[
64
],
b_ref
[
64
];
DECLARE_ALIGNED
(
16
,
int16_t
,
a
[
64
*
8
]);
DECLARE_ALIGNED
(
16
,
int16_t
,
b
[
64
]);
int16_t
b_ref
[
64
];
for
(
int
i
=
0
;
i
<
64
*
8
;
i
++
)
{
a
[
i
]
=
rnd_
.
Rand9Signed
();
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment