19 #ifndef ASYLO_IDENTITY_PLATFORM_SGX_MISCSELECT_UTIL_H_ 20 #define ASYLO_IDENTITY_PLATFORM_SGX_MISCSELECT_UTIL_H_ 24 #include "absl/strings/string_view.h" 25 #include "asylo/identity/platform/sgx/architecture_bits.h" 26 #include "asylo/identity/platform/sgx/miscselect.pb.h" 27 #include "asylo/util/status.h" 28 #include "asylo/util/statusor.h" 38 bool operator==(
const Miscselect &lhs,
const Miscselect &rhs);
41 bool operator!=(
const Miscselect &lhs,
const Miscselect &rhs);
bool operator==(const Miscselect &lhs, const Miscselect &rhs)
Checks two Miscselect protos for equality.
StatusOr< bool > IsMiscselectBitSet(MiscselectBit bit, const Miscselect &miscselect)
bool operator!=(const Miscselect &lhs, const Miscselect &rhs)
Checks two Miscselect protos for inequality.
Status SetMiscselectBit(MiscselectBit bit, Miscselect *miscselect)
StatusOr< bool > IsMiscselectBitSet(MiscselectBit bit, uint32_t miscselect)
Returns whether the given bit of miscselect is set, or returns a non-OK Status if the bit was invalid...
Status ClearMiscselectBit(MiscselectBit bit, Miscselect *miscselect)
ABSL_CONST_INIT const char kStatusMoveAssignmentMsg[]
std::vector< absl::string_view > GetPrintableMiscselectList(const Miscselect &miscselect)
Definition: architecture_bits.h:26
std::vector< absl::string_view > GetPrintableMiscselectList(uint32_t miscselect)
Returns a printable list of the bits set in miscselect.