1 #include <math.h> 2 trunc(double x)3 double trunc(double x) 4 { 5 __asm__ ("frintz %d0, %d1" : "=w"(x) : "w"(x)); 6 return x; 7 } 8