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

Function mc2__FPinit_proc

src/CInit.cpp:64–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62static std::int32_t &glo_86D7C4 = MC2_GLOBAL<std::int32_t>(0x0086D7C4);
63
64void mc2__FPinit_proc() {
65 // __cfltcvt_init
66 mc2__cfltcvt_tab = mc2__cfltcvt;
67 mc2__cropzeros_tab = mc2__cropzeros;
68 mc2__fassign_tab = mc2__fassign;
69 mc2__forcdecpt_tab = mc2__forcdecpt;
70 mc2__positive_tab = mc2__positive;
71 mc2__cldcvt_tab = mc2__cfltcvt;
72
73 // __ms_p5_mp_test_fdiv
74 /*
75 * Original had a check for a 1994 CPU defect called the Pentium FDIV Bug.
76 * Since no SSE compatible CPUs have the flaw, don't check for it when
77 * /arch is set to SSE or higher.
78 */
79#if defined (_WIN32) && (!defined(_M_IX86_FP) || _M_IX86_FP == 0)
80 glo_86D7C4 = IsProcessorFeaturePresent(PF_FLOATING_POINT_PRECISION_ERRATA);
81#else
82 glo_86D7C4 = 0;
83#endif
84
85 // __setdefaultprecision
86 /*
87 * Original set the x87 mode to 53-bit precision. This is invalid for SSE,
88 * and the default is already 53-bit precision for x87, so it's removed.
89 */
90}
91
92static int test_sse2() {
93 // Original had a runtime check for SSE2. However, we're

Callers 1

mc2_cinitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected