Revert "remove fldcw/fstcw from Win64 builds"
authorJohann Koenig <johannkoenig@google.com>
Fri, 23 Mar 2018 18:04:35 +0000 (18:04 +0000)
committerJohann <johannkoenig@google.com>
Fri, 23 Mar 2018 18:09:15 +0000 (11:09 -0700)
commit99e1784525d940ec9975261e352252f89f0694db
tree4093166651cbc9cdf5ee9716a49fc19ab85acb10
parent1000e07609f9136559148629ced67c170cb0218e
Revert "remove fldcw/fstcw from Win64 builds"

This reverts commit 60a3cb9ad840377d46286bfd703c30a4a4ee56e2.

Reason for revert: x87 instruction usage might not be as
clear cut as I would like. At the very least, llvm mingw
builds appear to having issues with emms.

Original change's description:
> remove fldcw/fstcw from Win64 builds
>
> _MCW_PC (Precision control) is not supported on x64:
> https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/control87-controlfp-control87-2
>
> The x87 FPU is not used on Win64 or ARM so setting the x87 control word
> is not necessary. The SSE/SSE2 and ARM FPUs don't have a precision
> control - the precision is embedded in each instruction - so the need to
> set the control word is also gone.

BUG=webm:1500

Change-Id: I25bcfa96bc9c860f6c7e03315d75fa6fd1d88ec5
vpx_ports/float_control_word.asm [new file with mode: 0644]
vpx_ports/vpx_ports.mk
vpx_ports/x86.h