Fix double-conversion routines (if less than 52 fraction bits)
Autogenerate base.h from generate_base.py