math: long double fix (use ldshape union)