diff --git a/src/qvi-hwloc.h b/src/qvi-hwloc.h index fc5f1b2..fa2d24a 100644 --- a/src/qvi-hwloc.h +++ b/src/qvi-hwloc.h @@ -451,6 +451,13 @@ struct qvi_hwloc_bitmap_s { { qvi_hwloc_bitmap_delete(&m_data); } + /** Equality operator. */ + bool + operator==( + const qvi_hwloc_bitmap_s &x + ) const { + return hwloc_bitmap_compare(cdata(), x.cdata()) == 0; + } /** Assignment operator. */ void operator=(const qvi_hwloc_bitmap_s &src) diff --git a/src/qvi-hwpool.cc b/src/qvi-hwpool.cc index ba3af2f..e33ba93 100644 --- a/src/qvi-hwpool.cc +++ b/src/qvi-hwpool.cc @@ -47,17 +47,6 @@ #include "qvi-utils.h" #if 0 -/** - * Returns whether two cpusets are equal. - */ -static bool -cpusets_equal( - hwloc_const_cpuset_t a, - hwloc_const_cpuset_t b -) { - return hwloc_bitmap_compare(a, b) == 0; -} - /** * */