MCPcopy Create free account
hub / github.com/chronoxor/CppBenchmark / Is64BitProcess

Method Is64BitProcess

source/benchmark/environment.cpp:67–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67bool Environment::Is64BitProcess()
68{
69#if defined(unix) || defined(__unix) || defined(__unix__) || defined(__APPLE__)
70#if defined(__x86_64__) || defined(__amd64__) || defined(__aarch64__) || defined(__ia64__) || defined(__ppc64__)
71 return true;
72#else
73 return false;
74#endif
75#elif defined(_WIN32) || defined(_WIN64)
76#if defined(_WIN64)
77 return true;
78#elif defined(_WIN32)
79 return false;
80#endif
81#else
82 #error Unsupported platform
83#endif
84}
85
86bool Environment::IsDebug()
87{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected