Lines Matching full:length

22 	size_t length)  in test_zdsp_add_f16()  argument
27 output = malloc(length * sizeof(float16_t)); in test_zdsp_add_f16()
31 zdsp_add_f16((float16_t *)input1, (float16_t *)input2, output, length); in test_zdsp_add_f16()
35 test_snr_error_f16(length, output, (float16_t *)ref, in test_zdsp_add_f16()
40 test_rel_error_f16(length, output, (float16_t *)ref, in test_zdsp_add_f16()
55 const uint16_t *ref, size_t length) in test_zdsp_add_f16_in_place() argument
60 output = malloc(length * sizeof(float16_t)); in test_zdsp_add_f16_in_place()
64 memcpy(output, (float16_t *)input1, length * sizeof(float16_t)); in test_zdsp_add_f16_in_place()
67 zdsp_add_f16(output, (float16_t *)input2, output, length); in test_zdsp_add_f16_in_place()
70 zassert_true(test_snr_error_f16(length, output, (float16_t *)ref, SNR_ERROR_THRESH), in test_zdsp_add_f16_in_place()
73 zassert_true(test_rel_error_f16(length, output, (float16_t *)ref, REL_ERROR_THRESH), in test_zdsp_add_f16_in_place()
88 size_t length) in test_zdsp_sub_f16() argument
93 output = malloc(length * sizeof(float16_t)); in test_zdsp_sub_f16()
97 zdsp_sub_f16((float16_t *)input1, (float16_t *)input2, output, length); in test_zdsp_sub_f16()
101 test_snr_error_f16(length, output, (float16_t *)ref, in test_zdsp_sub_f16()
106 test_rel_error_f16(length, output, (float16_t *)ref, in test_zdsp_sub_f16()
121 const uint16_t *ref, size_t length) in test_zdsp_sub_f16_in_place() argument
126 output = malloc(length * sizeof(float16_t)); in test_zdsp_sub_f16_in_place()
130 memcpy(output, (float16_t *)input1, length * sizeof(float16_t)); in test_zdsp_sub_f16_in_place()
133 zdsp_sub_f16(output, (float16_t *)input2, output, length); in test_zdsp_sub_f16_in_place()
136 zassert_true(test_snr_error_f16(length, output, (float16_t *)ref, SNR_ERROR_THRESH), in test_zdsp_sub_f16_in_place()
139 zassert_true(test_rel_error_f16(length, output, (float16_t *)ref, REL_ERROR_THRESH), in test_zdsp_sub_f16_in_place()
154 size_t length) in test_zdsp_mult_f16() argument
159 output = malloc(length * sizeof(float16_t)); in test_zdsp_mult_f16()
163 zdsp_mult_f16((float16_t *)input1, (float16_t *)input2, output, length); in test_zdsp_mult_f16()
167 test_snr_error_f16(length, output, (float16_t *)ref, in test_zdsp_mult_f16()
172 test_rel_error_f16(length, output, (float16_t *)ref, in test_zdsp_mult_f16()
187 const uint16_t *ref, size_t length) in test_zdsp_mult_f16_in_place() argument
192 output = malloc(length * sizeof(float16_t)); in test_zdsp_mult_f16_in_place()
196 memcpy(output, (float16_t *)input1, length * sizeof(float16_t)); in test_zdsp_mult_f16_in_place()
199 zdsp_mult_f16(output, (float16_t *)input2, output, length); in test_zdsp_mult_f16_in_place()
202 zassert_true(test_snr_error_f16(length, output, (float16_t *)ref, SNR_ERROR_THRESH), in test_zdsp_mult_f16_in_place()
205 zassert_true(test_rel_error_f16(length, output, (float16_t *)ref, REL_ERROR_THRESH), in test_zdsp_mult_f16_in_place()
219 const uint16_t *input1, const uint16_t *ref, size_t length) in test_zdsp_negate_f16() argument
224 output = malloc(length * sizeof(float16_t)); in test_zdsp_negate_f16()
228 zdsp_negate_f16((float16_t *)input1, output, length); in test_zdsp_negate_f16()
232 test_snr_error_f16(length, output, (float16_t *)ref, in test_zdsp_negate_f16()
237 test_rel_error_f16(length, output, (float16_t *)ref, in test_zdsp_negate_f16()
252 size_t length) in test_zdsp_negate_f16_in_place() argument
257 output = malloc(length * sizeof(float16_t)); in test_zdsp_negate_f16_in_place()
261 memcpy(output, (float16_t *)input1, length * sizeof(float16_t)); in test_zdsp_negate_f16_in_place()
264 zdsp_negate_f16(output, output, length); in test_zdsp_negate_f16_in_place()
267 zassert_true(test_snr_error_f16(length, output, (float16_t *)ref, SNR_ERROR_THRESH), in test_zdsp_negate_f16_in_place()
270 zassert_true(test_rel_error_f16(length, output, (float16_t *)ref, REL_ERROR_THRESH), in test_zdsp_negate_f16_in_place()
285 size_t length) in test_zdsp_offset_f16() argument
290 output = malloc(length * sizeof(float16_t)); in test_zdsp_offset_f16()
294 zdsp_offset_f16((float16_t *)input1, scalar, output, length); in test_zdsp_offset_f16()
298 test_snr_error_f16(length, output, (float16_t *)ref, in test_zdsp_offset_f16()
303 test_rel_error_f16(length, output, (float16_t *)ref, in test_zdsp_offset_f16()
318 const uint16_t *ref, size_t length) in test_zdsp_offset_f16_in_place() argument
323 output = malloc(length * sizeof(float16_t)); in test_zdsp_offset_f16_in_place()
327 memcpy(output, (float16_t *)input1, length * sizeof(float16_t)); in test_zdsp_offset_f16_in_place()
330 zdsp_offset_f16(output, scalar, output, length); in test_zdsp_offset_f16_in_place()
333 zassert_true(test_snr_error_f16(length, output, (float16_t *)ref, SNR_ERROR_THRESH), in test_zdsp_offset_f16_in_place()
336 zassert_true(test_rel_error_f16(length, output, (float16_t *)ref, REL_ERROR_THRESH), in test_zdsp_offset_f16_in_place()
353 size_t length) in test_zdsp_scale_f16() argument
358 output = malloc(length * sizeof(float16_t)); in test_zdsp_scale_f16()
362 zdsp_scale_f16((float16_t *)input1, scalar, output, length); in test_zdsp_scale_f16()
366 test_snr_error_f16(length, output, (float16_t *)ref, in test_zdsp_scale_f16()
371 test_rel_error_f16(length, output, (float16_t *)ref, in test_zdsp_scale_f16()
386 const uint16_t *ref, size_t length) in test_zdsp_scale_f16_in_place() argument
391 output = malloc(length * sizeof(float16_t)); in test_zdsp_scale_f16_in_place()
395 memcpy(output, (float16_t *)input1, length * sizeof(float16_t)); in test_zdsp_scale_f16_in_place()
398 zdsp_scale_f16(output, scalar, output, length); in test_zdsp_scale_f16_in_place()
401 zassert_true(test_snr_error_f16(length, output, (float16_t *)ref, SNR_ERROR_THRESH), in test_zdsp_scale_f16_in_place()
404 zassert_true(test_rel_error_f16(length, output, (float16_t *)ref, REL_ERROR_THRESH), in test_zdsp_scale_f16_in_place()
419 size_t length) in test_zdsp_dot_prod_f16() argument
429 (float16_t *)input1, (float16_t *)input2, length, &output[0]); in test_zdsp_dot_prod_f16()
453 const uint16_t *input1, const uint16_t *ref, size_t length) in test_zdsp_abs_f16() argument
458 output = malloc(length * sizeof(float16_t)); in test_zdsp_abs_f16()
462 zdsp_abs_f16((float16_t *)input1, output, length); in test_zdsp_abs_f16()
466 test_snr_error_f16(length, output, (float16_t *)ref, in test_zdsp_abs_f16()
471 test_rel_error_f16(length, output, (float16_t *)ref, in test_zdsp_abs_f16()
484 static void test_zdsp_abs_f16_in_place(const uint16_t *input1, const uint16_t *ref, size_t length) in test_zdsp_abs_f16_in_place() argument
489 output = malloc(length * sizeof(float16_t)); in test_zdsp_abs_f16_in_place()
493 memcpy(output, (float16_t *)input1, length * sizeof(float16_t)); in test_zdsp_abs_f16_in_place()
496 zdsp_abs_f16(output, output, length); in test_zdsp_abs_f16_in_place()
499 zassert_true(test_snr_error_f16(length, output, (float16_t *)ref, SNR_ERROR_THRESH), in test_zdsp_abs_f16_in_place()
502 zassert_true(test_rel_error_f16(length, output, (float16_t *)ref, REL_ERROR_THRESH), in test_zdsp_abs_f16_in_place()
516 const uint16_t *input, const uint16_t *ref, float16_t min, float16_t max, size_t length) in test_zdsp_clip_f16() argument
521 output = malloc(length * sizeof(float16_t)); in test_zdsp_clip_f16()
525 zdsp_clip_f16((float16_t *)input, output, min, max, length); in test_zdsp_clip_f16()
529 test_snr_error_f16(length, output, (float16_t *)ref, in test_zdsp_clip_f16()
534 test_rel_error_f16(length, output, (float16_t *)ref, in test_zdsp_clip_f16()
550 float16_t max, size_t length) in test_zdsp_clip_f16_in_place() argument
555 output = malloc(length * sizeof(float16_t)); in test_zdsp_clip_f16_in_place()
559 memcpy(output, (float16_t *)input, length * sizeof(float16_t)); in test_zdsp_clip_f16_in_place()
562 zdsp_clip_f16(output, output, min, max, length); in test_zdsp_clip_f16_in_place()
565 zassert_true(test_snr_error_f16(length, output, (float16_t *)ref, SNR_ERROR_THRESH), in test_zdsp_clip_f16_in_place()
568 zassert_true(test_rel_error_f16(length, output, (float16_t *)ref, REL_ERROR_THRESH), in test_zdsp_clip_f16_in_place()