Lines Matching refs:len

15 	uint8_t len = ARRAY_SIZE(x_axis);  in ZTEST()  local
19 zassert_equal(y_axis[0], linear_interpolate(x_axis, y_axis, len, INT32_MIN)); in ZTEST()
20 zassert_equal(y_axis[0], linear_interpolate(x_axis, y_axis, len, -1)); in ZTEST()
21 zassert_equal(y_axis[0], linear_interpolate(x_axis, y_axis, len, 0)); in ZTEST()
22 zassert_equal(y_axis[0], linear_interpolate(x_axis, y_axis, len, x_axis[0] - 1)); in ZTEST()
24 zassert_equal(y_axis[4], linear_interpolate(x_axis, y_axis, len, x_axis[4] + 1)); in ZTEST()
25 zassert_equal(y_axis[4], linear_interpolate(x_axis, y_axis, len, 100)); in ZTEST()
26 zassert_equal(y_axis[4], linear_interpolate(x_axis, y_axis, len, INT32_MAX)); in ZTEST()
33 uint8_t len = ARRAY_SIZE(x_axis); in ZTEST() local
39 zassert_equal(y_axis[i], linear_interpolate(x_axis, y_axis, len, x_axis[i])); in ZTEST()
47 uint8_t len = ARRAY_SIZE(x_axis); in ZTEST() local
53 zassert_equal(0, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
57 zassert_equal(1, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
61 zassert_equal(2, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
69 uint8_t len = ARRAY_SIZE(x_axis); in ZTEST() local
77 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
85 uint8_t len = ARRAY_SIZE(x_axis); in ZTEST() local
91 for (int i = x_axis[0]; i <= x_axis[len - 1]; i++) { in ZTEST()
93 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
102 uint8_t len = ARRAY_SIZE(x_axis); in ZTEST() local
108 for (int i = x_axis[0]; i <= x_axis[len - 1]; i++) { in ZTEST()
110 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
119 uint8_t len = ARRAY_SIZE(x_axis); in ZTEST() local
125 for (int i = x_axis[0]; i <= x_axis[len - 1]; i++) { in ZTEST()
127 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
135 uint8_t len = ARRAY_SIZE(x_axis); in ZTEST() local
143 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
149 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
155 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()
161 zassert_equal(expected, linear_interpolate(x_axis, y_axis, len, i)); in ZTEST()