From c0e15c066e181121acd1d8b37f8bcb501b5c63f6 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Mon, 6 Nov 2023 10:13:03 -0500 Subject: [PATCH] Add check for 128-bit pointers Thanks to Andy Polyakov --- validat3.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/validat3.cpp b/validat3.cpp index 8674ea2b..2cef7b60 100644 --- a/validat3.cpp +++ b/validat3.cpp @@ -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"; }