3 ms·
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 po
by brucehoult 6y 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.
- zaitanz 6y agoYes this is technically true, but it manifests itself through use of the MinGW compiler. When I first noticed the problem, there was very little indication as to the cause. TBH I accredit dumb luck more than anything to finding the cause of this. It took many hours.