Home | History | Annotate | Line # | Download | only in src
      1 #include <sys/cdefs.h>
      2 #ifdef __FreeBSD__
      3 __FBSDID("$FreeBSD: head/lib/msun/src/s_llrintl.c 175309 2008-01-14 02:12:07Z das $");
      4 #else
      5 __RCSID("$NetBSD: s_llrintl.c,v 1.4 2024/02/24 15:16:53 christos Exp $");
      6 #endif
      7 
      8 #include <math.h>
      9 
     10 #ifdef __HAVE_LONG_DOUBLE
     11 #define stype		long double
     12 #define	roundit		rintl
     13 #define dtype		long long
     14 #define	fn		llrintl
     15 
     16 #include "s_lrint.c"
     17 #else
     18 long long
     19 llrintl(long double x)
     20 {
     21 	return llrint(x);
     22 }
     23 #endif
     24 
     25