mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 09:59:42 +00:00
Add check for 128-bit pointers
Thanks to Andy Polyakov
This commit is contained in:
parent
1e20219ecd
commit
c0e15c066e
@ -256,7 +256,13 @@ bool TestSettings()
|
|||||||
pass = false;
|
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";
|
std::cout << "passed: Your machine is 64-bit.\n";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user