25 #ifndef __MOTR_LIB_EXT_H__ 26 #define __MOTR_LIB_EXT_H__ 29 #include "format/format_xc.h" 55 #define M0_EXT(start, end) \ 56 ((struct m0_ext){ .e_start = (start), .e_end = (end) }) 73 const struct m0_ext *subtrahend,
74 struct m0_ext *difference);
85 #define EXT_F "[%" PRIx64 ", %" PRIx64 ")" 86 #define EXT_P(x) (x)->e_start, (x)->e_end M0_INTERNAL m0_bcount_t m0_ext_length(const struct m0_ext *ext)
enum m0_ext_format_version M0_XCA_DOMAIN
struct m0_format_header e_header
M0_INTERNAL void m0_ext_add(const struct m0_ext *term0, const struct m0_ext *term1, struct m0_ext *sum)
M0_INTERNAL m0_bindex_t m0_ext_cap(const struct m0_ext *ext2, m0_bindex_t val)
M0_INTERNAL bool m0_ext_equal(const struct m0_ext *a, const struct m0_ext *b)
M0_INTERNAL bool m0_ext_is_valid(const struct m0_ext *ext)
M0_INTERNAL void m0_ext_init(struct m0_ext *ext)
M0_INTERNAL bool m0_ext_is_partof(const struct m0_ext *super, const struct m0_ext *sub)
M0_INTERNAL void m0_ext_sub(const struct m0_ext *minuend, const struct m0_ext *subtrahend, struct m0_ext *difference)
M0_INTERNAL bool m0_ext_is_in(const struct m0_ext *ext, m0_bindex_t index)
M0_INTERNAL bool m0_ext_is_empty(const struct m0_ext *ext)
struct m0_format_footer e_footer
M0_INTERNAL bool m0_ext_are_overlapping(const struct m0_ext *e0, const struct m0_ext *e1)
M0_INTERNAL void m0_ext_intersection(const struct m0_ext *e0, const struct m0_ext *e1, struct m0_ext *result)
static struct m0_be_ut_backend be