1570af302Sopenharmony_ci#include <math.h>
2570af302Sopenharmony_ci
3570af302Sopenharmony_cifloat nearbyintf(float x)
4570af302Sopenharmony_ci{
5570af302Sopenharmony_ci	__asm__ ("frinti %s0, %s1" : "=w"(x) : "w"(x));
6570af302Sopenharmony_ci	return x;
7570af302Sopenharmony_ci}
8