MCPcopy Create free account
hub / github.com/OpenMC2/OpenMC2 / test_sse2

Function test_sse2

src/CInit.cpp:92–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92static int test_sse2() {
93 // Original had a runtime check for SSE2. However, we're
94 // compiling with static SSE2 support, so just use that value.
95#if (defined(_M_IX86_FP) && _M_IX86_FP >= 2) || defined(__SSE2__)
96 MC2_GLOBAL<std::uint32_t>(0x0086DA50) = 1;
97 MC2_GLOBAL<std::uint32_t>(0x0086DA4C) = 1;
98#else
99 MC2_GLOBAL<std::uint32_t>(0x0086DA50) = 0;
100 MC2_GLOBAL<std::uint32_t>(0x0086DA4C) = 0;
101#endif
102 return 0;
103}
104
105/*
106* MC2 had a lot of float variables initialized to constant

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected