Lines Matching +full:input +full:- +full:buffer

3  * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
5 * SPDX-License-Identifier: Apache-2.0
18 #define REL_ERROR_THRESH (4.0e-2)
26 /* Allocate output buffer */ in test_zdsp_add_f16()
44 /* Free output buffer */ in test_zdsp_add_f16()
59 /* Allocate output buffer */ in test_zdsp_add_f16_in_place()
63 /* Copy input data to output*/ in test_zdsp_add_f16_in_place()
76 /* Free output buffer */ in test_zdsp_add_f16_in_place()
92 /* Allocate output buffer */ in test_zdsp_sub_f16()
110 /* Free output buffer */ in test_zdsp_sub_f16()
125 /* Allocate output buffer */ in test_zdsp_sub_f16_in_place()
129 /* Copy input data to output*/ in test_zdsp_sub_f16_in_place()
142 /* Free output buffer */ in test_zdsp_sub_f16_in_place()
158 /* Allocate output buffer */ in test_zdsp_mult_f16()
176 /* Free output buffer */ in test_zdsp_mult_f16()
191 /* Allocate output buffer */ in test_zdsp_mult_f16_in_place()
195 /* Copy input data to output*/ in test_zdsp_mult_f16_in_place()
208 /* Free output buffer */ in test_zdsp_mult_f16_in_place()
223 /* Allocate output buffer */ in test_zdsp_negate_f16()
241 /* Free output buffer */ in test_zdsp_negate_f16()
256 /* Allocate output buffer */ in test_zdsp_negate_f16_in_place()
260 /* Copy input data to output*/ in test_zdsp_negate_f16_in_place()
273 /* Free output buffer */ in test_zdsp_negate_f16_in_place()
289 /* Allocate output buffer */ in test_zdsp_offset_f16()
307 /* Free output buffer */ in test_zdsp_offset_f16()
322 /* Allocate output buffer */ in test_zdsp_offset_f16_in_place()
326 /* Copy input data to output*/ in test_zdsp_offset_f16_in_place()
339 /* Free output buffer */ in test_zdsp_offset_f16_in_place()
357 /* Allocate output buffer */ in test_zdsp_scale_f16()
375 /* Free output buffer */ in test_zdsp_scale_f16()
390 /* Allocate output buffer */ in test_zdsp_scale_f16_in_place()
394 /* Copy input data to output*/ in test_zdsp_scale_f16_in_place()
407 /* Free output buffer */ in test_zdsp_scale_f16_in_place()
423 /* Allocate output buffer */ in test_zdsp_dot_prod_f16()
442 /* Free output buffer */ in test_zdsp_dot_prod_f16()
457 /* Allocate output buffer */ in test_zdsp_abs_f16()
475 /* Free output buffer */ in test_zdsp_abs_f16()
488 /* Allocate output buffer */ in test_zdsp_abs_f16_in_place()
492 /* Copy input data to output*/ in test_zdsp_abs_f16_in_place()
505 /* Free output buffer */ 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
520 /* Allocate output buffer */ in test_zdsp_clip_f16()
525 zdsp_clip_f16((float16_t *)input, output, min, max, length); in test_zdsp_clip_f16()
538 /* Free output buffer */ in test_zdsp_clip_f16()
543 -0.5f, -0.1f, ARRAY_SIZE(ref_clip1));
545 -0.5f, 0.5f, ARRAY_SIZE(ref_clip2));
549 static void test_zdsp_clip_f16_in_place(const uint16_t *input, const uint16_t *ref, float16_t min, in test_zdsp_clip_f16_in_place() argument
554 /* Allocate output buffer */ in test_zdsp_clip_f16_in_place()
558 /* Copy input data to output*/ in test_zdsp_clip_f16_in_place()
559 memcpy(output, (float16_t *)input, length * sizeof(float16_t)); in test_zdsp_clip_f16_in_place()
571 /* Free output buffer */ in test_zdsp_clip_f16_in_place()
575 DEFINE_TEST_VARIANT5(basic_math_f16, zdsp_clip_f16_in_place, m0p5_m0p1, in_clip, ref_clip1, -0.5f,
576 -0.1f, ARRAY_SIZE(ref_clip1));
577 DEFINE_TEST_VARIANT5(basic_math_f16, zdsp_clip_f16_in_place, m0p5_0p5, in_clip, ref_clip2, -0.5f,