An Energy-Efficient Approximate Divider Based on Logarithmic Conversion and Piecewise Constant Approximation