Re: [Mingw-w64-public] fix pow() floating point imprecision

2022-06-13 Thread sisyphus
On Tue, Jun 14, 2022 at 1:57 AM LIU Hao wrote: > ... > I am putting this on hold for a while, until I have some time to look into > it. > > I think the different results can also be expressed as: (1/3) ^ 5 produces 3f70db20a88f4695 1 / (3 ^ 5) produces 3f70db20a88f4696 The latter is a far less e

[Mingw-w64-public] [PATCH] unknownbase.idl: Declare IUnknown proxy and stubs in C variant as well.

2022-06-13 Thread Jacek Caban
Signed-off-by: Jacek Caban --- mingw-w64-headers/include/unknwnbase.idl | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mingw-w64-headers/include/unknwnbase.idl b/mingw-w64-headers/include/unknwnbase.idl index a479baac1..a69a50468 100644 --- a/mingw-w64-headers/

Re: [Mingw-w64-public] fix pow() floating point imprecision

2022-06-13 Thread LIU Hao
在 2022/6/13 13:06, g...@m-labs.hk 写道: Again, this is correct mathematically. However, the value of (1 / 3) is in fact 0.33... Computer cannot represent the value of '1 / 3' precisely in computer memory under IEEE 754 because of limited size of data type. This function yield a imprecise v