long double math fixes for LD64
use #if LDBL_MANT_DIG == ... instead of custom LD80 etc macros
initial commit