Lines Matching +full:data +full:- +full:shift
4 * SPDX-License-Identifier: Apache-2.0
23 #define TEST_CASES_SHIFT_F64_TO_Q7 (-1.0, 0, -128), (1.0, 0, 127), (1.0, 7, 1), (-1.0, 7, -1)
25 #define TEST_CASES_SHIFT_F64_TO_Q15 (-1.0, 0, -32768), (1.0, 0, 32767), (1.0, 15, 1), (-1.0, 15, -1)
28 (-1.0, 0, INT32_MIN), (1.0, 0, INT32_MAX), (1.0, 31, 1), (-1.0, 31, -1)
30 static void test_shift_f64_to_q7(const float64_t data, const uint32_t shift, in test_shift_f64_to_q7() argument
33 const q7_t shifted_data = Z_SHIFT_F64_TO_Q7(data, shift); in test_shift_f64_to_q7()
36 "Conversion failed: %f shifted by %d = %d (expected %d)", data, 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() argument
43 const q15_t shifted_data = Z_SHIFT_F64_TO_Q15(data, shift); in test_shift_f64_to_q15()
46 "Conversion failed: %f shifted by %d = %d (expected %d)", (double)data, 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() argument
53 const q31_t shifted_data = Z_SHIFT_F64_TO_Q31(data, shift); in test_shift_f64_to_q31()
56 "Conversion failed: %f shifted by %d = %d (expected %d)", (double)data, shift, in test_shift_f64_to_q31()