Lines Matching refs:first
1894 sparsebit_idx_t first, last; member
1907 if (ranges[i].first <= idx && idx <= ranges[i].last) in get_value()
1913 static void operate(int code, sparsebit_idx_t first, sparsebit_idx_t last) in operate() argument
1918 if (first < last) { in operate()
1919 num = last - first + 1; in operate()
1921 num = first - last + 1; in operate()
1922 first = last; in operate()
1923 last = first + num - 1; in operate()
1928 sparsebit_set(s, first); in operate()
1929 assert(sparsebit_is_set(s, first)); in operate()
1930 assert(!sparsebit_is_clear(s, first)); in operate()
1933 if (get_value(first)) in operate()
1938 { .first = first, .last = first, .set = true }; in operate()
1941 sparsebit_clear(s, first); in operate()
1942 assert(!sparsebit_is_set(s, first)); in operate()
1943 assert(sparsebit_is_clear(s, first)); in operate()
1946 if (!get_value(first)) in operate()
1951 { .first = first, .last = first, .set = false }; in operate()
1954 assert(sparsebit_is_set(s, first) == get_value(first)); in operate()
1955 assert(sparsebit_is_clear(s, first) == !get_value(first)); in operate()
1967 { .first = 0, .last = ~(sparsebit_idx_t)0, .set = true }; in operate()
1980 next = sparsebit_next_set(s, first); in operate()
1981 assert(next == 0 || next > first); in operate()
1985 next = sparsebit_next_clear(s, first); in operate()
1986 assert(next == 0 || next > first); in operate()
1990 next = sparsebit_next_clear(s, first); in operate()
1991 if (sparsebit_is_set_num(s, first, num)) { in operate()
1993 if (first) in operate()
1994 next = sparsebit_next_set(s, first - 1); in operate()
1999 assert(next == first); in operate()
2001 assert(sparsebit_is_clear(s, first) || next <= last); in operate()
2005 next = sparsebit_next_set(s, first); in operate()
2006 if (sparsebit_is_clear_num(s, first, num)) { in operate()
2008 if (first) in operate()
2009 next = sparsebit_next_clear(s, first - 1); in operate()
2014 assert(next == first); in operate()
2016 assert(sparsebit_is_set(s, first) || next <= last); in operate()
2020 sparsebit_set_num(s, first, num); in operate()
2021 assert(sparsebit_is_set_num(s, first, num)); in operate()
2022 assert(!sparsebit_is_clear_num(s, first, num)); in operate()
2028 { .first = first, .last = last, .set = true }; in operate()
2031 sparsebit_clear_num(s, first, num); in operate()
2032 assert(!sparsebit_is_set_num(s, first, num)); in operate()
2033 assert(sparsebit_is_clear_num(s, first, num)); in operate()
2039 { .first = first, .last = last, .set = false }; in operate()
2078 uint64_t first = get64(); in main() local
2081 operate(op, first, last); in main()