Add check for 128-bit pointers

Thanks to Andy Polyakov
This commit is contained in:
Jeffrey Walton 2023-11-06 10:13:03 -05:00
parent 1e20219ecd
commit c0e15c066e
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -256,7 +256,13 @@ bool TestSettings()
pass = false;
}
if (sizeof(void*) == 8)
// Morello uses 129-bit pointers. Also see
// https://developer.arm.com/documentation/den0133/0100/Morello-prototype-architecture/Pointers-and-capabilities
if (sizeof(void*) == 16)
{
std::cout << "passed: Your machine is 128-bit.\n";
}
else if (sizeof(void*) == 8)
{
std::cout << "passed: Your machine is 64-bit.\n";
}