util: add softfloat functions to operate with doubles and floats