math: fix mpfr code for ld80 long double functions