mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-17 16:32:11 +01:00
Deepen means changing the mantissa from 64 bits to 128 bits. We also adjust the exponent bias, in anticipation of a future commit. Binary size, before: 22232 gen/lib/c/clang-5.0-dynamic/wuffs-base-f64conv.lo 22408 gen/lib/c/clang-5.0-static/wuffs-base-f64conv.o 23816 gen/lib/c/gcc-dynamic/wuffs-base-f64conv.lo 23816 gen/lib/c/gcc-static/wuffs-base-f64conv.o After: 27336 gen/lib/c/clang-5.0-dynamic/wuffs-base-f64conv.lo 27528 gen/lib/c/clang-5.0-static/wuffs-base-f64conv.o 28856 gen/lib/c/gcc-dynamic/wuffs-base-f64conv.lo 28856 gen/lib/c/gcc-static/wuffs-base-f64conv.o $ g++ -O3 script/process-json-numbers.c $ time ./a.out -parse-number-f64 < citylots.json Before/After: real 0m1.432s real 0m1.421s citylots.json is from github.com/zemirco/sf-city-lots-json