1570af302Sopenharmony_ci#include <math.h>
2570af302Sopenharmony_ci
3570af302Sopenharmony_cilong long llrintf(float x)
4570af302Sopenharmony_ci{
5570af302Sopenharmony_ci	long long r;
6570af302Sopenharmony_ci	__asm__ ("cvtss2si %1, %0" : "=r"(r) : "x"(x));
7570af302Sopenharmony_ci	return r;
8570af302Sopenharmony_ci}
9