MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetMaskFunction

Function GetMaskFunction

src/openrct2/drawing/Drawing.cpp:478–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478static auto GetMaskFunction()
479{
480 if (Platform::AVX2Available())
481 {
482 LOG_VERBOSE("registering AVX2 mask function");
483 return MaskAvx2;
484 }
485 else if (Platform::SSE41Available())
486 {
487 LOG_VERBOSE("registering SSE4.1 mask function");
488 return MaskSse4_1;
489 }
490 else
491 {
492 LOG_VERBOSE("registering scalar mask function");
493 return MaskScalar;
494 }
495}
496
497static const auto MaskFunc = GetMaskFunction();
498

Callers 1

Drawing.cppFile · 0.85

Calls 2

AVX2AvailableFunction · 0.85
SSE41AvailableFunction · 0.85

Tested by

no test coverage detected