1 #include <u.h> 2 #include <libc.h> 3 4 double fabs(double arg)5 fabs(double arg) 6 { 7 8 if(arg < 0) 9 return -arg; 10 return arg; 11 } 12