summaryrefslogtreecommitdiff
path: root/archstr.cc
diff options
context:
space:
mode:
Diffstat (limited to 'archstr.cc')
-rw-r--r--archstr.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/archstr.cc b/archstr.cc
new file mode 100644
index 0000000..b07cb32
--- /dev/null
+++ b/archstr.cc
@@ -0,0 +1,22 @@
+# include <luma/main.hh>
+char const * luma::archstr(luma::arch_t arch) {
+ char const * str = "";
+ switch(arch) {
+ default:
+ str = "Unknown";
+ break;
+ case luma::arch_t::aarch64:
+ str = "ARM64/AArch64";
+ break;
+ case luma::arch_t::amd64:
+ str = "AMD64/x86-64";
+ break;
+ case luma::arch_t::ia64:
+ str = "IA-64";
+ break;
+ case luma::arch_t::ppc64:
+ str = "PPC64";
+ break;
+ }
+ return str;
+}