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

Function testFISTTP64

source/test/testFPU.cpp:2532–2544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2530}
2531
2532void testFISTTP64() {
2533 doFISTTP64(0);
2534 doFISTTP64(0x123456789abcdef0l);
2535 doFISTTP64(0x723456789abcdef0l);
2536 doFISTTP64(0x0000000800000000l); // gog installer uses this and it exposed a bug where only the bottom 32-bits where checked for a 0 case
2537 doFISTTP64((U64)(S64)-2);
2538
2539 if (cpu->isBig()) {
2540 doFISTTP64(123456789.4, 123456789);
2541 doFISTTP64(123456789.6, 123456789);
2542 doFISTTP64(-123456789.4, -123456789);
2543 }
2544}
2545
2546void doFISTP64(U64 data) {
2547

Callers 1

testFPUDDFunction · 0.85

Calls 2

doFISTTP64Function · 0.85
isBigMethod · 0.80

Tested by

no test coverage detected