I'm using Watcom C++ and I'm trying to speed up my programs by using inline assembler. I have a very simple task: I have two float-variables, and I want to copy a value like this:
From one book I have I got an impresson that it should be done this way in assembler:
But then I get a runtime error "domain error in sqrt". It's a bit strange, since it has nothing to do with squareroots, but that's what happens. Is my code missing something essential?