Permalink
Browse files

VS2013 std::isinf compatibility patch, part 2

  • Loading branch information...
joncampbell123 committed Dec 16, 2017
1 parent 54cb846 commit 2c0a6b2cb08f80972a1e107e431fb8d45c0ba652
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/fpu/fpu_instructions.h
@@ -461,7 +461,7 @@ static void FPU_FCOM(Bitu st, Bitu other){
* "none" for no FPU, 287 or 387 for cputype=286 and cputype=386, or "auto" to match the CPU (8086 => 8087).
* If the FPU type is 387 or auto, then skip this hack. Else for 8087 and 287, use this hack. */
if (CPU_ArchitectureType<CPU_ARCHTYPE_386) {
if ((std::isinf)(fpu.regs[st].d) && std::isinf(fpu.regs[other].d)) {
if ((std::isinf)(fpu.regs[st].d) && (std::isinf)(fpu.regs[other].d)) {
/* 8087/287 consider -inf == +inf and that's what DOS programs test for to detect 287 vs 387 */
FPU_SET_C3(1);FPU_SET_C2(0);FPU_SET_C0(0);return;
}

0 comments on commit 2c0a6b2

Please sign in to comment.