Floating-Point Printing and Parsing Can Be Simple and Fast
Posted by chmaynard 5 days ago
Comments
Comment by vitaut 4 days ago
Comment by jhallenworld 1 day ago
https://github.com/nklabs/libnklabs/blob/main/src/nkprintf_f... https://github.com/nklabs/libnklabs/blob/main/src/nkstrtod.c https://github.com/nklabs/libnklabs/blob/main/src/nkdectab.c
nkprintf_fp.c+nkdectab.c: 2494 bytes
schubfach.cc: 10K bytes.. the code is small, but there is a giant table of numbers. Also this is just dtoa, not a full printf formatter.
OTOH, the old code is not round-trip accurate.
Russ Cox should make a C version of his code..
Comment by nigeltao 1 day ago
Comment by vitaut 23 hours ago
Comment by vitaut 23 hours ago
Comment by magicalhippo 1 day ago
Comment by vitaut 23 hours ago
Comment by adgjlsfhk1 23 hours ago
Comment by vitaut 10 hours ago
Comment by andrepd 1 day ago
Comment by vitaut 23 hours ago
Comment by WiSaGaN 22 hours ago
Comment by vitaut 10 hours ago