/Zephyr-Core-3.5.0/tests/lib/cmsis_dsp/quaternionmath/src/ |
D | f32.c | 22 size_t length = ARRAY_SIZE(ref_norm); in ZTEST() local 28 output = malloc(length * sizeof(float32_t)); in ZTEST() 32 arm_quaternion_norm_f32(input, output, length); in ZTEST() 36 test_snr_error_f32(length, output, ref, SNR_ERROR_THRESH), in ZTEST() 40 test_close_error_f32(length, output, ref, in ZTEST() 50 size_t length = ARRAY_SIZE(ref_inv); in ZTEST() local 56 output = malloc(length * sizeof(float32_t)); in ZTEST() 60 arm_quaternion_inverse_f32(input, output, length / 4); in ZTEST() 64 test_snr_error_f32(length, output, ref, SNR_ERROR_THRESH), in ZTEST() 68 test_close_error_f32(length, output, ref, in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/subsys/dsp/basicmath/src/ |
D | f16.c | 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() [all …]
|
D | q31.c | 21 const q31_t *ref, size_t length) in test_zdsp_add_q31() argument 26 output = (DSP_DATA q31_t *)malloc(length * sizeof(q31_t)); in test_zdsp_add_q31() 30 zdsp_add_q31(input1, input2, output, length); in test_zdsp_add_q31() 34 test_snr_error_q31(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_add_q31() 38 test_near_equal_q31(length, output, ref, ABS_ERROR_THRESH_Q31), in test_zdsp_add_q31() 54 const q31_t *ref, size_t length) in test_zdsp_add_q31_in_place() argument 59 output = (DSP_DATA q31_t *)malloc(length * sizeof(q31_t)); in test_zdsp_add_q31_in_place() 63 memcpy(output, input1, length * sizeof(q31_t)); in test_zdsp_add_q31_in_place() 66 zdsp_add_q31(output, input2, output, length); in test_zdsp_add_q31_in_place() 69 zassert_true(test_snr_error_q31(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_add_q31_in_place() [all …]
|
D | q15.c | 23 size_t length) in test_zdsp_add_q15() argument 28 output = (DSP_DATA q15_t *)malloc(length * sizeof(q15_t)); in test_zdsp_add_q15() 32 zdsp_add_q15(input1, input2, output, length); in test_zdsp_add_q15() 36 test_snr_error_q15(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_add_q15() 40 test_near_equal_q15(length, output, ref, ABS_ERROR_THRESH_Q15), in test_zdsp_add_q15() 58 const q15_t *ref, size_t length) in test_zdsp_add_q15_in_place() argument 63 output = (DSP_DATA q15_t *)malloc(length * sizeof(q15_t)); in test_zdsp_add_q15_in_place() 67 memcpy(output, input1, length * sizeof(q15_t)); in test_zdsp_add_q15_in_place() 70 zdsp_add_q15(output, input2, output, length); in test_zdsp_add_q15_in_place() 73 zassert_true(test_snr_error_q15(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_add_q15_in_place() [all …]
|
D | q7.c | 21 const q7_t *ref, size_t length) in test_zdsp_add_q7() argument 26 output = (DSP_DATA q7_t *)(DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_add_q7() 30 zdsp_add_q7(input1, input2, output, length); in test_zdsp_add_q7() 34 test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_add_q7() 38 test_near_equal_q7(length, output, ref, ABS_ERROR_THRESH_Q7), in test_zdsp_add_q7() 54 const q7_t *ref, size_t length) in test_zdsp_add_q7_in_place() argument 59 output = (DSP_DATA q7_t *)(DSP_DATA q7_t *)malloc(length * sizeof(q7_t)); in test_zdsp_add_q7_in_place() 63 memcpy(output, input1, length * sizeof(q7_t)); in test_zdsp_add_q7_in_place() 66 zdsp_add_q7(output, input2, output, length); in test_zdsp_add_q7_in_place() 69 zassert_true(test_snr_error_q7(length, output, ref, SNR_ERROR_THRESH), in test_zdsp_add_q7_in_place() [all …]
|
D | f32.c | 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() [all …]
|
/Zephyr-Core-3.5.0/tests/lib/cmsis_dsp/fastmath/src/ |
D | f16.c | 40 size_t length = ARRAY_SIZE(in_angles); 44 output = malloc(length * sizeof(float16_t)); 48 for (index = 0; index < length; index++) { 54 test_snr_error_f16(length, output, (float16_t *)ref_cos, 59 test_close_error_f16(length, output, (float16_t *)ref_cos, 70 size_t length = ARRAY_SIZE(in_angles); 74 output = malloc(length * sizeof(float16_t)); 78 for (index = 0; index < length; index++) { 84 test_snr_error_f16(length, output, (float16_t *)ref_sin, 89 test_close_error_f16(length, output, (float16_t *)ref_sin, [all …]
|
D | q15.c | 24 size_t length = ARRAY_SIZE(in_angles); in ZTEST() local 28 output = malloc(length * sizeof(q15_t)); in ZTEST() 32 for (index = 0; index < length; index++) { in ZTEST() 38 test_snr_error_q15(length, output, ref_cos, SNR_ERROR_THRESH), in ZTEST() 42 test_near_equal_q15(length, output, ref_cos, ABS_ERROR_THRESH), in ZTEST() 52 size_t length = ARRAY_SIZE(in_angles); in ZTEST() local 56 output = malloc(length * sizeof(q15_t)); in ZTEST() 60 for (index = 0; index < length; index++) { in ZTEST() 66 test_snr_error_q15(length, output, ref_sin, SNR_ERROR_THRESH), in ZTEST() 70 test_near_equal_q15(length, output, ref_sin, ABS_ERROR_THRESH), in ZTEST() [all …]
|
D | f32.c | 25 size_t length = ARRAY_SIZE(in_angles); in ZTEST() local 29 output = malloc(length * sizeof(float32_t)); in ZTEST() 33 for (index = 0; index < length; index++) { in ZTEST() 39 test_snr_error_f32(length, output, (float32_t *)ref_cos, in ZTEST() 44 test_close_error_f32(length, output, (float32_t *)ref_cos, in ZTEST() 55 size_t length = ARRAY_SIZE(in_angles); in ZTEST() local 59 output = malloc(length * sizeof(float32_t)); in ZTEST() 63 for (index = 0; index < length; index++) { in ZTEST() 69 test_snr_error_f32(length, output, (float32_t *)ref_sin, in ZTEST() 74 test_close_error_f32(length, output, (float32_t *)ref_sin, in ZTEST() [all …]
|
D | q31.c | 24 size_t length = ARRAY_SIZE(in_angles); in ZTEST() local 28 output = malloc(length * sizeof(q31_t)); in ZTEST() 32 for (index = 0; index < length; index++) { in ZTEST() 38 test_snr_error_q31(length, output, ref_cos, SNR_ERROR_THRESH), in ZTEST() 42 test_near_equal_q31(length, output, ref_cos, ABS_ERROR_THRESH), in ZTEST() 52 size_t length = ARRAY_SIZE(in_angles); in ZTEST() local 56 output = malloc(length * sizeof(q31_t)); in ZTEST() 60 for (index = 0; index < length; index++) { in ZTEST() 66 test_snr_error_q31(length, output, ref_sin, SNR_ERROR_THRESH), in ZTEST() 70 test_near_equal_q31(length, output, ref_sin, ABS_ERROR_THRESH), in ZTEST() [all …]
|
/Zephyr-Core-3.5.0/tests/lib/cmsis_dsp/support/src/ |
D | f32.c | 22 static void test_arm_copy_f32(const uint32_t *input1, size_t length) in test_arm_copy_f32() argument 27 output = malloc(length * sizeof(float32_t)); in test_arm_copy_f32() 31 arm_copy_f32((float32_t *)input1, output, length); in test_arm_copy_f32() 35 test_equal_f32(length, (float32_t *)input1, output), in test_arm_copy_f32() 46 static void test_arm_fill_f32(size_t length) in test_arm_fill_f32() argument 53 output = malloc(length * sizeof(float32_t)); in test_arm_fill_f32() 57 arm_fill_f32(val, output, length); in test_arm_fill_f32() 60 for (index = 0; index < length; index++) { in test_arm_fill_f32() 74 const uint32_t *input1, const q31_t *ref, size_t length) in test_arm_float_to_q31() argument 79 output = malloc(length * sizeof(q31_t)); in test_arm_float_to_q31() [all …]
|
D | f16.c | 31 static void test_arm_copy_f16(const uint16_t *input1, size_t length) in test_arm_copy_f16() argument 36 output = malloc(length * sizeof(float16_t)); in test_arm_copy_f16() 40 arm_copy_f16((float16_t *)input1, output, length); in test_arm_copy_f16() 44 test_equal_f16(length, (float16_t *)input1, output), in test_arm_copy_f16() 55 static void test_arm_fill_f16(size_t length) in test_arm_fill_f16() argument 62 output = malloc(length * sizeof(float16_t)); in test_arm_fill_f16() 66 arm_fill_f16(val, output, length); in test_arm_fill_f16() 69 for (index = 0; index < length; index++) { in test_arm_fill_f16() 83 const uint16_t *input1, const q15_t *ref, size_t length) in test_arm_f16_to_q15() argument 88 output = malloc(length * sizeof(q15_t)); in test_arm_f16_to_q15() [all …]
|
D | q15.c | 21 static void test_arm_copy_q15(const q15_t *input1, size_t length) in test_arm_copy_q15() argument 26 output = malloc(length * sizeof(q15_t)); in test_arm_copy_q15() 30 arm_copy_q15(input1, output, length); in test_arm_copy_q15() 34 test_equal_q15(length, input1, output), in test_arm_copy_q15() 45 static void test_arm_fill_q15(size_t length) in test_arm_fill_q15() argument 52 output = malloc(length * sizeof(q15_t)); in test_arm_fill_q15() 56 arm_fill_q15(val, output, length); in test_arm_fill_q15() 59 for (index = 0; index < length; index++) { in test_arm_fill_q15() 73 const q15_t *input1, const uint32_t *ref, size_t length) in test_arm_q15_to_float() argument 78 output = malloc(length * sizeof(float32_t)); in test_arm_q15_to_float() [all …]
|
D | q31.c | 21 static void test_arm_copy_q31(const q31_t *input1, size_t length) in test_arm_copy_q31() argument 26 output = malloc(length * sizeof(q31_t)); in test_arm_copy_q31() 30 arm_copy_q31(input1, output, length); in test_arm_copy_q31() 34 test_equal_q31(length, input1, output), in test_arm_copy_q31() 45 static void test_arm_fill_q31(size_t length) in test_arm_fill_q31() argument 52 output = malloc(length * sizeof(q31_t)); in test_arm_fill_q31() 56 arm_fill_q31(val, output, length); in test_arm_fill_q31() 59 for (index = 0; index < length; index++) { in test_arm_fill_q31() 73 const q31_t *input1, const uint32_t *ref, size_t length) in test_arm_q31_to_float() argument 78 output = malloc(length * sizeof(float32_t)); in test_arm_q31_to_float() [all …]
|
D | q7.c | 21 static void test_arm_copy_q7(const q7_t *input1, size_t length) in test_arm_copy_q7() argument 26 output = malloc(length * sizeof(q7_t)); in test_arm_copy_q7() 30 arm_copy_q7(input1, output, length); in test_arm_copy_q7() 34 test_equal_q7(length, input1, output), in test_arm_copy_q7() 45 static void test_arm_fill_q7(size_t length) in test_arm_fill_q7() argument 52 output = malloc(length * sizeof(q7_t)); in test_arm_fill_q7() 56 arm_fill_q7(val, output, length); in test_arm_fill_q7() 59 for (index = 0; index < length; index++) { in test_arm_fill_q7() 73 const q7_t *input1, const uint32_t *ref, size_t length) in test_arm_q7_to_float() argument 78 output = malloc(length * sizeof(float32_t)); in test_arm_q7_to_float() [all …]
|
/Zephyr-Core-3.5.0/tests/lib/cmsis_dsp/common/ |
D | test_common.h | 119 size_t length, const float64_t *a, const float64_t *b) in test_equal_f64() argument 123 for (index = 0; index < length; index++) { in test_equal_f64() 133 size_t length, const float32_t *a, const float32_t *b) in test_equal_f32() argument 137 for (index = 0; index < length; index++) { in test_equal_f32() 148 size_t length, const float16_t *a, const float16_t *b) in test_equal_f16() argument 152 for (index = 0; index < length; index++) { in test_equal_f16() 163 size_t length, const q63_t *a, const q63_t *b) in test_equal_q63() argument 167 for (index = 0; index < length; index++) { in test_equal_q63() 177 size_t length, const q31_t *a, const q31_t *b) in test_equal_q31() argument 181 for (index = 0; index < length; index++) { in test_equal_q31() [all …]
|
/Zephyr-Core-3.5.0/tests/lib/cmsis_dsp/complexmath/src/ |
D | q15.c | 24 const q15_t *input1, const q15_t *ref, size_t length) in test_arm_cmplx_conj_q15() argument 29 /* Complex number buffer length is twice the data length */ in test_arm_cmplx_conj_q15() 30 buf_length = 2 * length; in test_arm_cmplx_conj_q15() 37 arm_cmplx_conj_q15(input1, output, length); in test_arm_cmplx_conj_q15() 59 size_t length) in test_arm_cmplx_dot_prod_q15() argument 68 arm_cmplx_dot_prod_q15(input1, input2, length, &output[0], &output[1]); in test_arm_cmplx_dot_prod_q15() 91 const q15_t *input1, const q15_t *ref, size_t length) in test_arm_cmplx_mag_q15() argument 96 output = malloc(length * sizeof(q15_t)); in test_arm_cmplx_mag_q15() 100 arm_cmplx_mag_q15(input1, output, length); in test_arm_cmplx_mag_q15() 104 test_snr_error_q15(length, output, ref, SNR_ERROR_THRESH_HIGH), in test_arm_cmplx_mag_q15() [all …]
|
D | f16.c | 22 const uint16_t *input1, const uint16_t *ref, size_t length) in test_arm_cmplx_conj_f16() argument 27 /* Complex number buffer length is twice the data length */ in test_arm_cmplx_conj_f16() 28 buf_length = 2 * length; in test_arm_cmplx_conj_f16() 35 arm_cmplx_conj_f16((float16_t *)input1, output, length); in test_arm_cmplx_conj_f16() 58 size_t length) in test_arm_cmplx_dot_prod_f16() argument 68 (float16_t *)input1, (float16_t *)input2, length, in test_arm_cmplx_dot_prod_f16() 94 const uint16_t *input1, const uint16_t *ref, size_t length) in test_arm_cmplx_mag_f16() argument 99 output = malloc(length * sizeof(float16_t)); in test_arm_cmplx_mag_f16() 103 arm_cmplx_mag_f16((float16_t *)input1, output, length); in test_arm_cmplx_mag_f16() 107 test_snr_error_f16(length, output, (float16_t *)ref, in test_arm_cmplx_mag_f16() [all …]
|
D | f32.c | 22 const uint32_t *input1, const uint32_t *ref, size_t length) in test_arm_cmplx_conj_f32() argument 27 /* Complex number buffer length is twice the data length */ in test_arm_cmplx_conj_f32() 28 buf_length = 2 * length; in test_arm_cmplx_conj_f32() 35 arm_cmplx_conj_f32((float32_t *)input1, output, length); in test_arm_cmplx_conj_f32() 58 size_t length) in test_arm_cmplx_dot_prod_f32() argument 68 (float32_t *)input1, (float32_t *)input2, length, in test_arm_cmplx_dot_prod_f32() 94 const uint32_t *input1, const uint32_t *ref, size_t length) in test_arm_cmplx_mag_f32() argument 99 output = malloc(length * sizeof(float32_t)); in test_arm_cmplx_mag_f32() 103 arm_cmplx_mag_f32((float32_t *)input1, output, length); in test_arm_cmplx_mag_f32() 107 test_snr_error_f32(length, output, (float32_t *)ref, in test_arm_cmplx_mag_f32() [all …]
|
D | q31.c | 23 const q31_t *input1, const q31_t *ref, size_t length) in test_arm_cmplx_conj_q31() argument 28 /* Complex number buffer length is twice the data length */ in test_arm_cmplx_conj_q31() 29 buf_length = 2 * length; in test_arm_cmplx_conj_q31() 36 arm_cmplx_conj_q31(input1, output, length); in test_arm_cmplx_conj_q31() 58 size_t length) in test_arm_cmplx_dot_prod_q31() argument 67 arm_cmplx_dot_prod_q31(input1, input2, length, &output[0], &output[1]); in test_arm_cmplx_dot_prod_q31() 90 const q31_t *input1, const q31_t *ref, size_t length) in test_arm_cmplx_mag_q31() argument 95 output = malloc(length * sizeof(q31_t)); in test_arm_cmplx_mag_q31() 99 arm_cmplx_mag_q31(input1, output, length); in test_arm_cmplx_mag_q31() 103 test_snr_error_q31(length, output, ref, SNR_ERROR_THRESH), in test_arm_cmplx_mag_q31() [all …]
|
/Zephyr-Core-3.5.0/tests/lib/cmsis_dsp/statistics/src/ |
D | f32.c | 20 const uint32_t *input1, int ref_index, size_t length) in test_arm_max_f32() argument 26 arm_max_f32((float32_t *)input1, length, &val, &index); in test_arm_max_f32() 41 const uint32_t *input1, int ref_index, size_t length) in test_arm_max_no_idx_f32() argument 46 arm_max_no_idx_f32((float32_t *)input1, length, &val); in test_arm_max_no_idx_f32() 58 const uint32_t *input1, int ref_index, size_t length) in test_arm_min_f32() argument 64 arm_min_f32((float32_t *)input1, length, &val, &index); in test_arm_min_f32() 79 const uint32_t *input1, int ref_index, size_t length) in test_arm_absmax_f32() argument 85 arm_absmax_f32((float32_t *)input1, length, &val, &index); in test_arm_absmax_f32() 100 const uint32_t *input1, int ref_index, size_t length) in test_arm_absmin_f32() argument 106 arm_absmin_f32((float32_t *)input1, length, &val, &index); in test_arm_absmin_f32() [all …]
|
D | f64.c | 22 size_t length = in_entropy_dim[0]; in ZTEST() local 27 __ASSERT_NO_MSG(ARRAY_SIZE(in_entropy_dim) > length); in ZTEST() 28 __ASSERT_NO_MSG(ARRAY_SIZE(ref_entropy) >= length); in ZTEST() 31 output = malloc(length * sizeof(float64_t)); in ZTEST() 35 for (index = 0; index < length; index++) { in ZTEST() 43 test_snr_error_f64(length, ref, output, SNR_ERROR_THRESH), in ZTEST() 47 test_near_equal_f64(length, ref, output, REL_ERROR_THRESH), in ZTEST() 57 size_t length = in_kl_dim[0]; in ZTEST() local 63 __ASSERT_NO_MSG(ARRAY_SIZE(in_kl_dim) > length); in ZTEST() 64 __ASSERT_NO_MSG(ARRAY_SIZE(ref_kl) >= length); in ZTEST() [all …]
|
D | f16.c | 36 const uint16_t *input1, int ref_index, size_t length) in test_arm_max_f16() argument 42 arm_max_f16((float16_t *)input1, length, &val, &index); in test_arm_max_f16() 57 const uint16_t *input1, int ref_index, size_t length) in test_arm_max_no_idx_f16() argument 62 arm_max_no_idx_f16((float16_t *)input1, length, &val); in test_arm_max_no_idx_f16() 74 const uint16_t *input1, int ref_index, size_t length) in test_arm_min_f16() argument 80 arm_min_f16((float16_t *)input1, length, &val, &index); in test_arm_min_f16() 95 const uint16_t *input1, int ref_index, size_t length) in test_arm_absmax_f16() argument 101 arm_absmax_f16((float16_t *)input1, length, &val, &index); in test_arm_absmax_f16() 116 const uint16_t *input1, int ref_index, size_t length) in test_arm_absmin_f16() argument 122 arm_absmin_f16((float16_t *)input1, length, &val, &index); in test_arm_absmin_f16() [all …]
|
/Zephyr-Core-3.5.0/subsys/tracing/ |
D | tracing_format_sync.c | 16 uint32_t length, tracing_buffer_size; in tracing_format_string() local 30 length = tracing_buffer_get_claim(&data, tracing_buffer_size); in tracing_format_string() 31 tracing_buffer_handle(data, length); in tracing_format_string() 32 tracing_buffer_get_finish(length); in tracing_format_string() 41 void tracing_format_raw_data(uint8_t *data, uint32_t length) in tracing_format_raw_data() argument 48 tracing_buffer_handle(data, length); in tracing_format_raw_data() 56 uint32_t length, tracing_buffer_size; in tracing_format_data() local 68 length = tracing_buffer_get_claim(&data, tracing_buffer_size); in tracing_format_data() 69 tracing_buffer_handle(data, length); in tracing_format_data() 70 tracing_buffer_get_finish(length); in tracing_format_data()
|
/Zephyr-Core-3.5.0/soc/sparc/gr716a/ |
D | linker.ld | 17 * LENGTH values represent the maximum possible. All memory regions may not be 22 bootprom (rx) : ORIGIN = 0x00000000, LENGTH = 4K 23 extprom (rx) : ORIGIN = 0x01000000, LENGTH = 16M 24 spi0 (rx) : ORIGIN = 0x02000000, LENGTH = 32M 25 spi1 (rx) : ORIGIN = 0x04000000, LENGTH = 32M 26 RAM (rw) : ORIGIN = 0x30000000, LENGTH = 64K 27 SRAM (x) : ORIGIN = 0x31000000, LENGTH = 128K 28 extram (rwx) : ORIGIN = 0x40000000, LENGTH = 256M 30 IDT_LIST (wx) : ORIGIN = 0xFFFFF7FF, LENGTH = 2K
|