2012/8/4 Earnie Boyd <[email protected]>: > I need some math whiz help. So it seems to me that strtod("NAN", > NULL) should return the same as __builtin_nan(""). And G++ should > return the same result as GCC. For the GCC instance I believe that > the crt/gdtoa/strtodnrp.c code is wrong. For the G++ instance I > believe stdlib.h isn't correct. Can someone help me debug the > strtodnrp.c issue?
Well, the issue here about strtod is, that mingw-w64 uses msvcrt's variant. So you would need to pass '1.#IND' or '1.#QNAN' (+/- NaN) for your test. If we teach gdtoa's __strtodg to handle also MS' Inf/Nan syntax, then we could indeed simply override in both cases msvcrt's strtod. So sorry, test shows expected behavior. Regards, Kai ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
