mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Extend version checks in subgroup test to support all cases
To prepare for merging the cl20_trunk branch. Signed-off-by: Kevin Petit <kevin.petit@arm.com>
This commit is contained in:
@@ -39,6 +39,8 @@ public:
|
||||
Version() : m_major(0), m_minor(0) {}
|
||||
Version(int major, int minor) : m_major(major), m_minor(minor) {}
|
||||
bool operator>(const Version& rhs) const { return to_int() > rhs.to_int(); }
|
||||
bool operator<(const Version& rhs) const { return to_int() < rhs.to_int(); }
|
||||
bool operator==(const Version& rhs) const { return to_int() == rhs.to_int(); }
|
||||
int to_int() const { return m_major * 10 + m_minor; }
|
||||
std::string to_string() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user