cosmopolitan/libc/math/llrint.c

9 lines
131 B
C
Raw Normal View History

2020-06-15 14:18:57 +00:00
#include "libc/math/math.h"
/* uses LLONG_MAX > 2^53, see comments in lrint.c */
long long llrint(double x)
{
return rint(x);
}