summaryrefslogtreecommitdiff
path: root/archstr.cc
blob: b07cb324f27abdacf494ea519beb3e77f54c99f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
}