Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define the equality operator for qvi_hwloc_bitmap_s. #252

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/qvi-hwloc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 0 additions & 11 deletions src/qvi-hwpool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
*
*/
Expand Down
Loading