Floating point emulation software routine