1 2 3 4 5 6 7
#include <math.h> double fabs(double x) { __asm__ ("fabs %0, %1" : "=d"(x) : "d"(x)); return x; }