This source file includes following definitions.
- GetSandboxArch
#include "base/logging.h"
#if defined(OS_WIN)
#include "base/win/windows_version.h"
#endif
namespace nacl {
const char* GetSandboxArch() {
#if defined(ARCH_CPU_ARM_FAMILY)
return "arm";
#elif defined(ARCH_CPU_MIPS_FAMILY)
return "mips32";
#elif defined(ARCH_CPU_X86_FAMILY)
#if defined(OS_WIN)
if (base::win::OSInfo::GetInstance()->architecture() ==
base::win::OSInfo::X64_ARCHITECTURE)
return "x86-64";
else
return "x86-32";
#elif ARCH_CPU_64_BITS
return "x86-64";
#else
return "x86-32";
#endif
#else
#error Architecture not supported.
#endif
}
}