Lines Matching +full:concat +full:- +full:buf +full:- +full:size

4  * SPDX-License-Identifier: Apache-2.0
48 "Value=123 is not converted to \"12\" using 2-byte buffer"); in ZTEST()
55 "Value=123 is not converted to \"1\" using 1-byte buffer"); in ZTEST()
69 zassert_equal(sign_extend(u8, 3), -1); in ZTEST()
73 zassert_equal(sign_extend(u16, 11), -1); in ZTEST()
77 zassert_equal(sign_extend(u32, 27), -1); in ZTEST()
88 zassert_equal(sign_extend_64(u8, 3), -1); in ZTEST()
92 zassert_equal(sign_extend_64(u16, 11), -1); in ZTEST()
96 zassert_equal(sign_extend_64(u32, 27), -1); in ZTEST()
100 zassert_equal(sign_extend_64(u64, 59), -1); in ZTEST()
249 zassert_equal(CLAMP(-5, -7, -3), -5, "Unexpected clamp result"); in ZTEST()
250 zassert_equal(CLAMP(-9, -7, -3), -7, "Unexpected clamp result"); in ZTEST()
251 zassert_equal(CLAMP(1, -7, -3), -3, "Unexpected clamp result"); in ZTEST()
261 zassert_true(IN_RANGE(-1, -2, 2), "Unexpected IN_RANGE result"); in ZTEST()
262 zassert_true(IN_RANGE(-3, -5, -1), "Unexpected IN_RANGE result"); in ZTEST()
271 zassert_false(IN_RANGE(-1, 0, 1), "Unexpected IN_RANGE result"); in ZTEST()
275 #define FOR_EACH_MACRO_TEST(arg) *buf++ = arg in ZTEST()
279 uint8_t *buf = array; in ZTEST() local
316 size_t size = ARRAY_SIZE(array); in ZTEST() local
318 zassert_equal(size, 7, "Unexpected size %d", size); in ZTEST()
388 "Expected to be non-empty"); in ZTEST()
390 "Expected to be non-empty"); in ZTEST()
392 "Expected to be non-empty"); in ZTEST()
497 zassert_false(IS_ARRAY_ELEMENT(array, &array[-1])); in ZTEST()
518 size_t j = -1; in ZTEST()
553 zassert_false(PART_OF_ARRAY(array, &array[-1])); in ZTEST()
668 /* 5 / 2 = 2.5 -> 3 */ in ZTEST()
670 zassert_equal(DIV_ROUND_CLOSEST(5, -2), -3); in ZTEST()
671 zassert_equal(DIV_ROUND_CLOSEST(-5, 2), -3); in ZTEST()
672 zassert_equal(DIV_ROUND_CLOSEST(-5, -2), 3); in ZTEST()
673 /* 7 / 3 = 2.(3) -> 2 */ in ZTEST()
675 zassert_equal(DIV_ROUND_CLOSEST(-7, 3), -2); in ZTEST()
790 zassert_equal(CONCAT(CAT_PART1), 1); in ZTEST()
791 zassert_equal(CONCAT(CAT_PART1, CAT_PART2), 12); in ZTEST()
792 zassert_equal(CONCAT(CAT_PART1, CAT_PART2, CAT_PART3), 123); in ZTEST()
793 zassert_equal(CONCAT(CAT_PART1, CAT_PART2, CAT_PART3, CAT_PART4), 1234); in ZTEST()
794 zassert_equal(CONCAT(CAT_PART1, CAT_PART2, CAT_PART3, CAT_PART4, CAT_PART5), 12345); in ZTEST()
795 zassert_equal(CONCAT(CAT_PART1, CAT_PART2, CAT_PART3, CAT_PART4, CAT_PART5, CAT_PART6), in ZTEST()
797 zassert_equal(CONCAT(CAT_PART1, CAT_PART2, CAT_PART3, CAT_PART4, in ZTEST()
800 zassert_equal(CONCAT(CAT_PART1, CAT_PART2, CAT_PART3, CAT_PART4, in ZTEST()
804 zassert_equal(CONCAT(CAT_PART1, CONCAT(CAT_PART2, CAT_PART3)), 123); in ZTEST()
816 BUILD_ASSERT(SIZEOF_FIELD(struct test_t, a) == 4, "The a member is 4-byte wide."); in ZTEST()
817 BUILD_ASSERT(SIZEOF_FIELD(struct test_t, b) == 1, "The b member is 1-byte wide."); in ZTEST()
818 BUILD_ASSERT(SIZEOF_FIELD(struct test_t, c) == 17, "The c member is 17-byte wide."); in ZTEST()
819 BUILD_ASSERT(SIZEOF_FIELD(struct test_t, d) == 2, "The d member is 2-byte wide."); in ZTEST()
830 test_str[strlen(test_str) - 1] = '\0'; in ZTEST()
863 /* dest_str size is based on storing 2 * € plus the null terminator plus an extra space to in ZTEST()
877 /* dest_str size is based on storing 3 * € plus the null terminator */ in ZTEST()
889 /* dest_str size is based on the null terminator */ in ZTEST()