Note that there are some explanatory texts on larger screens.

plurals
  1. USJohannes Petzold
    primarykey
    data
    text
    plurals
    1. This table or related slice is empty.
    1. COYour last comments led me to find out that _controlfp() behaves differently, depending on which msvcr*.dll is used. Unlike before, I can now reproduce the issue on any 32-bit CPU simply by using "msvcr100_clr0400.dll" instead of "msvcrt.dll". I currently can't run tests on machine B anymore, but I think it's fair to assume that the FPU control word is the root cause for explaining the inconsistent behavior; that fact was just somewhat covered up by the inconsistent implementation of _controlfp(). Thanks for your help!
      singulars
    2. COI got the following results from executing your code on several machines: If **compiling for x86** platform target and **running on 64bit** CPU, I get the same results as you. Every other combination (compile with "Any CPU" target and/or run on 32bit CPU) never prints -Infinity. I still haven't executed the code on the original machine B (32bit CPU), will post results here once I got the chance (don't have direct access to that machine, so it may still be a few days). Note - I had to change the code to use _controlfp() instead of _controlfp_s(), the latter is not included in my msvcrt.dll.
      singulars
    3. COJon: machine B output is from a debug print statement in a large application. The debug statement uses string.Format, and one of its argument is nothing but Math.Log10(double.Epsilon)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload