17 Jan
2024
17 Jan
'24
11:27 a.m.
I see. Out of curiosity, what makes the parsing algorithm fail such that you need to call strtold?
It's an intractable problem. I spent a few months trying to adapt Lemire's papers on fast_float to 128-bit precision. You need 10s of MBs of static data, and generating it at runtime is a non-starter. Ultimately Gay's algorithm works, and it's what is in strtold already. I would much rather use the battle tested implementations in the STL than my own. Matt