Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. kenshinofkin

    Getting absolute value of a float

    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...

Part and Inventory Search

Back
Top