|
|
|
|
|
by brucehoult
1968 days ago
|
|
If you read the article you find that this is a bug in MinGW64 libraries. It's not a compiler bug, it's not a problem in C/C++, or even in IEEE-754 floating point math. The MinGW64 thread library simply forgot to initialize the FPU correctly. He'd have had the same problem if he wrote his code in assembly language and then ran it in a MinGW64 thread. |
|
TBH I accredit dumb luck more than anything to finding the cause of this. It took many hours.