math: fix logb(-0.0) in downward rounding mode