Skip to content

Commit

Permalink
Add check for 128-bit pointers
Browse files Browse the repository at this point in the history
Thanks to Andy Polyakov
  • Loading branch information
noloader committed Nov 6, 2023
1 parent 1e20219 commit c0e15c0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion validat3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

1 comment on commit c0e15c0

@noloader
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also see ARM Morello Program. The Compile Farm has a machine with the Morello arch at cfarm240.cfarm.net.

Please sign in to comment.