Home
last modified time | relevance | path

Searched refs:float64_t (Results 1 – 15 of 15) sorted by relevance

/Zephyr-latest/tests/lib/cmsis_dsp/filtering/src/
Dbiquad_f64.c16 #define SNR_ERROR_THRESH ((float64_t)98)
24 const float64_t *input = (const float64_t *)in_default_val; in ZTEST()
25 const float64_t *coeff = (const float64_t *)in_default_coeff; in ZTEST()
26 const float64_t *ref = (const float64_t *)ref_default; in ZTEST()
27 float64_t *state, *output_buf, *output; in ZTEST()
31 state = malloc(128 * sizeof(float64_t)); in ZTEST()
34 output_buf = malloc(length * sizeof(float64_t)); in ZTEST()
75 const float64_t *input = (const float64_t *)in_rand_mono_val; in ZTEST()
76 const float64_t *coeff = (const float64_t *)in_rand_coeff; in ZTEST()
77 const float64_t *ref = (const float64_t *)ref_rand_mono; in ZTEST()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/statistics/src/
Df64.c16 #define SNR_ERROR_THRESH ((float64_t)300)
23 const float64_t *ref = (float64_t *)ref_entropy; in ZTEST()
24 const float64_t *input = (float64_t *)in_entropy; in ZTEST()
25 float64_t *output; in ZTEST()
31 output = malloc(length * sizeof(float64_t)); in ZTEST()
58 const float64_t *ref = (float64_t *)ref_kl; in ZTEST()
59 const float64_t *input1 = (float64_t *)in_kl1; in ZTEST()
60 const float64_t *input2 = (float64_t *)in_kl2; in ZTEST()
61 float64_t *output; in ZTEST()
67 output = malloc(length * sizeof(float64_t)); in ZTEST()
/Zephyr-latest/tests/lib/cmsis_dsp/matrix/src/
Dunary_f64.c16 #define SNR_ERROR_THRESH ((float64_t)120)
20 #define SNR_ERROR_THRESH_CHOL ((float64_t)270)
34 float64_t *tmp1, *tmp2, *output; in test_op2()
43 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(float64_t)); in test_op2()
46 tmp2 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(float64_t)); in test_op2()
49 output = malloc(length * sizeof(float64_t)); in test_op2()
68 rows * columns * sizeof(float64_t)); in test_op2()
71 rows * columns * sizeof(float64_t)); in test_op2()
93 test_snr_error_f64(length, output, (float64_t *)ref, in test_op2()
98 test_close_error_f64(length, output, (float64_t *)ref, in test_op2()
[all …]
Dbinary_f64.c16 #define SNR_ERROR_THRESH ((float64_t)120)
31 float64_t *tmp1, *tmp2, *output; in test_op2()
40 tmp1 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(float64_t)); in test_op2()
43 tmp2 = malloc(MAX_MATRIX_DIM * MAX_MATRIX_DIM * sizeof(float64_t)); in test_op2()
46 output = malloc(length * sizeof(float64_t)); in test_op2()
72 rows * internal * sizeof(float64_t)); in test_op2()
75 internal * columns * sizeof(float64_t)); in test_op2()
97 test_snr_error_f64(length, output, (float64_t *)ref, in test_op2()
102 test_close_error_f64(length, output, (float64_t *)ref, in test_op2()
127 float64_t *tmp1, *tmp2, *output;
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/common/
Dtest_common.h75 size_t length, const float64_t *a, const float64_t *b) in test_equal_f64()
175 size_t length, const float64_t *a, const float64_t *b, in test_near_equal_f64()
176 float64_t threshold) in test_near_equal_f64()
278 size_t length, const float64_t *a, const float64_t *b, in test_rel_error_f64()
279 float64_t threshold) in test_rel_error_f64()
282 float64_t rel, delta, average; in test_rel_error_f64()
349 size_t length, const float64_t *ref, const float64_t *val, in test_close_error_f64()
350 float64_t abs_threshold, float64_t rel_threshold) in test_close_error_f64()
399 size_t length, const float64_t *a, const float64_t *b, in test_snr_error_f64()
400 float64_t threshold) in test_snr_error_f64()
[all …]
/Zephyr-latest/tests/lib/cmsis_dsp/transform/src/
Drf64.c17 #define SNR_ERROR_THRESH ((float64_t)250)
23 float64_t *output, *scratch; in test_arm_rfft_f64_real_backend()
29 output = malloc(length * sizeof(float64_t)); in test_arm_rfft_f64_real_backend()
32 scratch = calloc(length + 2, sizeof(float64_t)); /* see #24701 */ in test_arm_rfft_f64_real_backend()
36 memcpy(scratch, input, length * sizeof(float64_t)); in test_arm_rfft_f64_real_backend()
43 test_snr_error_f64(length, output, (float64_t *)ref, in test_arm_rfft_f64_real_backend()
Dcf64.c17 #define SNR_ERROR_THRESH ((float64_t)250)
23 float64_t *output; in test_arm_cfft_f64_cmplx_backend()
33 output = malloc(length * sizeof(float64_t)); in test_arm_cfft_f64_cmplx_backend()
37 memcpy(output, input, length * sizeof(float64_t)); in test_arm_cfft_f64_cmplx_backend()
44 test_snr_error_f64(length, output, (float64_t *)ref, in test_arm_cfft_f64_cmplx_backend()
/Zephyr-latest/include/zephyr/dsp/
Dutils.h73 #define Z_SHIFT_Q7_TO_F64(src, m) (((float64_t)(src << m)) / (1U << 7))
82 #define Z_SHIFT_Q15_TO_F64(src, m) (((float64_t)(src << m)) / (1UL << 15))
91 #define Z_SHIFT_Q31_TO_F64(src, m) ((float64_t)(((int64_t)src) << m) / (1ULL << 31))
Dtypes.h61 typedef double float64_t; typedef
/Zephyr-latest/tests/subsys/dsp/utils/src/
Df64.c30 static void test_shift_f64_to_q7(const float64_t data, const uint32_t shift, in test_shift_f64_to_q7()
40 static void test_shift_f64_to_q15(const float64_t data, const uint32_t shift, in test_shift_f64_to_q15()
50 static void test_shift_f64_to_q31(const float64_t data, const uint32_t shift, in test_shift_f64_to_q31()
Dq15.c39 static void test_shift_q15_to_f64(const q15_t data, const uint32_t shift, const float64_t expected) in test_shift_q15_to_f64()
41 const float64_t shifted_data = Z_SHIFT_Q15_TO_F64(data, shift); in test_shift_q15_to_f64()
Dq31.c40 static void test_shift_q31_to_f64(const q31_t data, const uint32_t shift, const float64_t expected) in test_shift_q31_to_f64()
42 const float64_t shifted_data = Z_SHIFT_Q31_TO_F64(data, shift); in test_shift_q31_to_f64()
Dq7.c38 static void test_shift_q7_to_f64(const q7_t data, const uint32_t shift, const float64_t expected) in test_shift_q7_to_f64()
40 const float64_t shifted_data = Z_SHIFT_Q7_TO_F64(data, shift); in test_shift_q7_to_f64()
/Zephyr-latest/modules/canopennode/
DCO_driver_target.h55 BUILD_ASSERT(sizeof(float64_t) >= 8);
/Zephyr-latest/samples/modules/canopennode/objdict/
DCO_OD.h33 typedef float64_t REAL64;