MCPcopy Create free account
hub / github.com/RenderKit/embree / stringOfISA

Function stringOfISA

common/sys/sysinfo.cpp:420–435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

418 }
419
420 std::string stringOfISA (int isa)
421 {
422 if (isa == SSE) return "SSE";
423 if (isa == SSE2) return "SSE2";
424 if (isa == SSE3) return "SSE3";
425 if (isa == SSSE3) return "SSSE3";
426 if (isa == SSE41) return "SSE4.1";
427 if (isa == SSE42) return "SSE4.2";
428 if (isa == AVX) return "AVX";
429 if (isa == AVX2) return "AVX2";
430 if (isa == AVX512) return "AVX512";
431
432 if (isa == NEON) return "NEON";
433 if (isa == NEON_2X) return "2xNEON";
434 return "UNKNOWN";
435 }
436
437 bool hasISA(int features, int isa) {
438 return (features & isa) == isa;

Callers 15

runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
runMethod · 0.85
run_buildMethod · 0.85
runMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected