Fix lgamma*, log10* and log2* results [BZ #21171]