35 #define randomize_input(len) \
38 for (k = 0; k < len; k++) { \
39 in[k] = rnd() - INT32_MAX; \
41 for ( ; k < BUF_SIZE; k++) { \
53 int length[] = {8, 16, 24, 56, 72, 128, 512, 520, 656, 768, 992};
61 memset(dst0, 0,
sizeof(*dst0) *
BUF_SIZE);
62 memset(dst1, 0,
sizeof(*dst1) *
BUF_SIZE);
64 if (
check_func(
c.int32_to_float_fmul_scalar,
"int32_to_float_fmul_scalar")) {
72 call_ref(dst0, in, scale_arr[
i], length[j]);
73 call_new(dst1, in, scale_arr[
i], length[j]);
84 if (
check_func(
c.int32_to_float_fmul_array8,
"int32_to_float_fmul_array8")) {
88 for (
i = 0;
i < 4;
i++) {
93 call_ref(&
c, dst0, in, scale_arr, length[j]);
94 call_new(&
c, dst1, in, scale_arr, length[j]);
98 fprintf(stderr,
"int32_to_float_fmul_array8: len: %d\n", length[j]);
102 bench_new(&
c, dst1, in, scale_arr, length[j]);