Lines Matching refs:check_one_size_helper
720 #define check_one_size_helper(expected, func, args...) do { \ in overflow_size_helpers_test() macro
729 check_one_size_helper(20, size_mul, var++, 5); in overflow_size_helpers_test()
730 check_one_size_helper(20, size_mul, 4, var++); in overflow_size_helpers_test()
731 check_one_size_helper(0, size_mul, 0, 3); in overflow_size_helpers_test()
732 check_one_size_helper(0, size_mul, 3, 0); in overflow_size_helpers_test()
733 check_one_size_helper(6, size_mul, 2, 3); in overflow_size_helpers_test()
734 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 1); in overflow_size_helpers_test()
735 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, 3); in overflow_size_helpers_test()
736 check_one_size_helper(SIZE_MAX, size_mul, SIZE_MAX, -3); in overflow_size_helpers_test()
739 check_one_size_helper(9, size_add, var++, 5); in overflow_size_helpers_test()
740 check_one_size_helper(9, size_add, 4, var++); in overflow_size_helpers_test()
741 check_one_size_helper(9, size_add, 9, 0); in overflow_size_helpers_test()
742 check_one_size_helper(9, size_add, 0, 9); in overflow_size_helpers_test()
743 check_one_size_helper(5, size_add, 2, 3); in overflow_size_helpers_test()
744 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 1); in overflow_size_helpers_test()
745 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, 3); in overflow_size_helpers_test()
746 check_one_size_helper(SIZE_MAX, size_add, SIZE_MAX, -3); in overflow_size_helpers_test()
749 check_one_size_helper(1, size_sub, var--, 3); in overflow_size_helpers_test()
750 check_one_size_helper(1, size_sub, 4, var--); in overflow_size_helpers_test()
751 check_one_size_helper(1, size_sub, 3, 2); in overflow_size_helpers_test()
752 check_one_size_helper(9, size_sub, 9, 0); in overflow_size_helpers_test()
753 check_one_size_helper(SIZE_MAX, size_sub, 9, -3); in overflow_size_helpers_test()
754 check_one_size_helper(SIZE_MAX, size_sub, 0, 9); in overflow_size_helpers_test()
755 check_one_size_helper(SIZE_MAX, size_sub, 2, 3); in overflow_size_helpers_test()
756 check_one_size_helper(SIZE_MAX, size_sub, SIZE_MAX, 0); in overflow_size_helpers_test()
757 check_one_size_helper(SIZE_MAX, size_sub, SIZE_MAX, 10); in overflow_size_helpers_test()
758 check_one_size_helper(SIZE_MAX, size_sub, 0, SIZE_MAX); in overflow_size_helpers_test()
759 check_one_size_helper(SIZE_MAX, size_sub, 14, SIZE_MAX); in overflow_size_helpers_test()
760 check_one_size_helper(SIZE_MAX - 2, size_sub, SIZE_MAX - 1, 1); in overflow_size_helpers_test()
761 check_one_size_helper(SIZE_MAX - 4, size_sub, SIZE_MAX - 1, 3); in overflow_size_helpers_test()
762 check_one_size_helper(1, size_sub, SIZE_MAX - 1, -3); in overflow_size_helpers_test()
765 check_one_size_helper(4 * sizeof(*obj->data), in overflow_size_helpers_test()
767 check_one_size_helper(5 * sizeof(*obj->data), in overflow_size_helpers_test()
769 check_one_size_helper(0, flex_array_size, obj, data, 0 + unconst); in overflow_size_helpers_test()
770 check_one_size_helper(sizeof(*obj->data), in overflow_size_helpers_test()
772 check_one_size_helper(7 * sizeof(*obj->data), in overflow_size_helpers_test()
774 check_one_size_helper(SIZE_MAX, in overflow_size_helpers_test()
776 check_one_size_helper(SIZE_MAX, in overflow_size_helpers_test()
780 check_one_size_helper(sizeof(*obj) + (4 * sizeof(*obj->data)), in overflow_size_helpers_test()
782 check_one_size_helper(sizeof(*obj) + (5 * sizeof(*obj->data)), in overflow_size_helpers_test()
784 check_one_size_helper(sizeof(*obj), struct_size, obj, data, 0 + unconst); in overflow_size_helpers_test()
785 check_one_size_helper(sizeof(*obj) + sizeof(*obj->data), in overflow_size_helpers_test()
787 check_one_size_helper(SIZE_MAX, in overflow_size_helpers_test()
789 check_one_size_helper(SIZE_MAX, in overflow_size_helpers_test()
793 #undef check_one_size_helper in overflow_size_helpers_test()