1 #include <math.h>
2 
nearbyintf(float x)3 float nearbyintf(float x)
4 {
5 	__asm__ ("frinti %s0, %s1" : "=w"(x) : "w"(x));
6 	return x;
7 }
8