MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / FINIT

Method FINIT

source/emulation/cpu/common/fpu.cpp:195–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193
194
195void FPU::FINIT() {
196#ifdef LOG_FPU
197 if (!fpuLogFile.isOpen()) {
198 fpuLogFile.createNew("fpu2.txt");
199 }
200#endif
201 SetCW(0x37F);
202 this->sw = 0;
203 this->top = FPU_GET_TOP(this);
204 this->tags[0] = TAG_Empty;
205 this->tags[1] = TAG_Empty;
206 this->tags[2] = TAG_Empty;
207 this->tags[3] = TAG_Empty;
208 this->tags[4] = TAG_Empty;
209 this->tags[5] = TAG_Empty;
210 this->tags[6] = TAG_Empty;
211 this->tags[7] = TAG_Empty;
212 this->isMMXInUse = false;
213 memset(isRegCached, 0, sizeof(isRegCached));
214}
215
216void FPU::FCLEX() {
217 this->sw &= 0x7f00; //should clear exceptions

Callers 2

resetMethod · 0.80
common_FNINITFunction · 0.80

Calls 2

createNewMethod · 0.80
isOpenMethod · 0.45

Tested by

no test coverage detected