Lines Matching full:length
20 const uint32_t *ref, size_t length) in test_zdsp_add_f32() argument
25 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_add_f32()
29 zdsp_add_f32((DSP_DATA float32_t *)input1, (DSP_DATA float32_t *)input2, output, length); in test_zdsp_add_f32()
33 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_add_f32()
38 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_add_f32()
53 const DSP_DATA uint32_t *input2, const uint32_t *ref, size_t length) in test_zdsp_add_f32_in_place() argument
58 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_add_f32_in_place()
62 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_add_f32_in_place()
65 zdsp_add_f32(output, (DSP_DATA float32_t *)input2, output, length); in test_zdsp_add_f32_in_place()
68 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_add_f32_in_place()
71 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_add_f32_in_place()
85 const uint32_t *ref, size_t length) in test_zdsp_sub_f32() argument
90 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_sub_f32()
94 zdsp_sub_f32((DSP_DATA float32_t *)input1, (DSP_DATA float32_t *)input2, output, length); in test_zdsp_sub_f32()
98 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_sub_f32()
103 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_sub_f32()
118 const DSP_DATA uint32_t *input2, const uint32_t *ref, size_t length) in test_zdsp_sub_f32_in_place() argument
123 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_sub_f32_in_place()
127 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_sub_f32_in_place()
130 zdsp_sub_f32(output, (DSP_DATA float32_t *)input2, output, length); in test_zdsp_sub_f32_in_place()
133 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_sub_f32_in_place()
136 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_sub_f32_in_place()
150 const uint32_t *ref, size_t length) in test_zdsp_mult_f32() argument
155 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_mult_f32()
159 zdsp_mult_f32((DSP_DATA float32_t *)input1, (DSP_DATA float32_t *)input2, output, length); in test_zdsp_mult_f32()
163 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_mult_f32()
168 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_mult_f32()
183 const DSP_DATA uint32_t *input2, const uint32_t *ref, size_t length) in test_zdsp_mult_f32_in_place() argument
188 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_mult_f32_in_place()
192 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_mult_f32_in_place()
195 zdsp_mult_f32(output, (DSP_DATA float32_t *)input2, output, length); in test_zdsp_mult_f32_in_place()
198 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_mult_f32_in_place()
201 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_mult_f32_in_place()
215 size_t length) in test_zdsp_negate_f32() argument
220 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_negate_f32()
224 zdsp_negate_f32((DSP_DATA float32_t *)input1, output, length); in test_zdsp_negate_f32()
228 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_negate_f32()
233 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_negate_f32()
248 size_t length) in test_zdsp_negate_f32_in_place() argument
253 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_negate_f32_in_place()
257 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_negate_f32_in_place()
260 zdsp_negate_f32(output, output, length); in test_zdsp_negate_f32_in_place()
263 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_negate_f32_in_place()
266 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_negate_f32_in_place()
280 const uint32_t *ref, size_t length) in test_zdsp_offset_f32() argument
285 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_offset_f32()
289 zdsp_offset_f32((DSP_DATA float32_t *)input1, scalar, output, length); in test_zdsp_offset_f32()
293 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_offset_f32()
298 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_offset_f32()
313 const uint32_t *ref, size_t length) in test_zdsp_offset_f32_in_place() argument
318 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_offset_f32_in_place()
322 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_offset_f32_in_place()
325 zdsp_offset_f32(output, scalar, output, length); in test_zdsp_offset_f32_in_place()
328 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_offset_f32_in_place()
331 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_offset_f32_in_place()
346 const uint32_t *ref, size_t length) in test_zdsp_scale_f32() argument
351 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_scale_f32()
355 zdsp_scale_f32((DSP_DATA float32_t *)input1, scalar, output, length); in test_zdsp_scale_f32()
359 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_scale_f32()
364 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_scale_f32()
379 const uint32_t *ref, size_t length) in test_zdsp_scale_f32_in_place() argument
384 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_scale_f32_in_place()
388 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_scale_f32_in_place()
391 zdsp_scale_f32(output, scalar, output, length); in test_zdsp_scale_f32_in_place()
394 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_scale_f32_in_place()
397 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_scale_f32_in_place()
411 const uint32_t *ref, size_t length) in test_zdsp_dot_prod_f32() argument
420 zdsp_dot_prod_f32((DSP_DATA float32_t *)input1, (DSP_DATA float32_t *)input2, length, in test_zdsp_dot_prod_f32()
444 static void test_zdsp_abs_f32(const DSP_DATA uint32_t *input1, const uint32_t *ref, size_t length) in test_zdsp_abs_f32() argument
449 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_abs_f32()
453 zdsp_abs_f32((DSP_DATA float32_t *)input1, output, length); in test_zdsp_abs_f32()
457 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_abs_f32()
462 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_abs_f32()
476 size_t length) in test_zdsp_abs_f32_in_place() argument
481 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_abs_f32_in_place()
485 memcpy(output, input1, length * sizeof(float32_t)); in test_zdsp_abs_f32_in_place()
488 zdsp_abs_f32(output, output, length); in test_zdsp_abs_f32_in_place()
491 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_abs_f32_in_place()
494 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_abs_f32_in_place()
508 float32_t max, size_t length) in test_zdsp_clip_f32() argument
513 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_clip_f32()
517 zdsp_clip_f32((DSP_DATA float32_t *)input, output, min, max, length); in test_zdsp_clip_f32()
521 test_snr_error_f32(length, output, (float32_t *)ref, in test_zdsp_clip_f32()
526 test_rel_error_f32(length, output, (float32_t *)ref, in test_zdsp_clip_f32()
542 float32_t min, float32_t max, size_t length) in test_zdsp_clip_f32_in_place() argument
547 output = (DSP_DATA float32_t *)malloc(length * sizeof(float32_t)); in test_zdsp_clip_f32_in_place()
551 memcpy(output, input, length * sizeof(float32_t)); in test_zdsp_clip_f32_in_place()
554 zdsp_clip_f32(output, output, min, max, length); in test_zdsp_clip_f32_in_place()
557 zassert_true(test_snr_error_f32(length, output, (float32_t *)ref, SNR_ERROR_THRESH), in test_zdsp_clip_f32_in_place()
560 zassert_true(test_rel_error_f32(length, output, (float32_t *)ref, REL_ERROR_THRESH), in test_zdsp_clip_f32_in_place()