MCPcopy Create free account
hub / github.com/cinit/TMoe / getCurrentProcessArchitecture

Function getCurrentProcessArchitecture

app/src/main/cpp/utils/ProcessUtils.cpp:172–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172int getCurrentProcessArchitecture() noexcept {
173#if defined(__aarch64__) || defined(__arm64__) || defined (_M_ARM64)
174 return Architecture::ARCH_AARCH64;
175#elif defined(__arm__) || defined(_M_ARM)
176 return Architecture::ARCH_ARM;
177#elif defined(__x86_64__) || defined(__amd64__)
178 return Architecture::ARCH_X86_64;
179#elif defined(__x86__) || defined(__i386__) || defined(_M_IX86)
180 return Architecture::ARCH_X86;
181#else
182#error "Unsupported architecture"
183#endif
184}
185
186}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected