I am using Cygwin and gcc to create a function that gets the absolute value of a float. Is fabs the instruction to use to get the absolute value?
asm("lea %[nIn],%%edi \n"
"fabs \n"
"mov %%edi,%[nOut] \n"
: [nOut] "=m" (n)
: [nIn] "m" (n)
);
'n' is a double. What do I pass...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.