import mir.math.common: log2, approxEqual; import mir.bignum.fp: fp_log2; double x = 123456789.0e+123; assert(approxEqual(x.Fp!128.fp_log2!double, x.log2));
See Implementation