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