Added IEEE.math_real-compatible version for VHDL