1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

checkasm/lls: adjust buffer sizes and alignments

var must be padded.
param has `order + 1`, not `order` elements and is *not* over-aligned.
This commit is contained in:
Rémi Denis-Courmont 2024-06-08 09:33:49 +03:00
parent 08ea7d6b8e
commit 18adaf9fe5

View File

@ -82,8 +82,8 @@ void checkasm_check_lls(void)
static const unsigned char counts[] = { 8, 12, MAX_VARS, };
for (size_t i = 0; i < FF_ARRAY_ELEMS(counts); i++) {
LOCAL_ALIGNED_32(double, var, [MAX_VARS]);
LOCAL_ALIGNED_32(double, param, [MAX_VARS]);
LOCAL_ALIGNED_32(double, var, [MAX_VARS_ALIGN]);
LOCAL_ALIGNED_32(double, param, [FFALIGN(MAX_VARS+2,4)]);
LLSModel lls;
avpriv_init_lls(&lls, counts[i]);
@ -95,7 +95,7 @@ void checkasm_check_lls(void)
for (size_t j = 0; j <= i; j++)
if (check_func(lls.evaluate_lls, "evaluate_lls_%d_%d", counts[i],
counts[j]))
test_evaluate(&lls, param, counts[j]);
test_evaluate(&lls, param + 1, counts[j]);
}
report("lls");
}