mirror of
https://github.com/fluencelabs/musl
synced 2025-06-05 02:51:40 +00:00
17 lines
360 B
C
17 lines
360 B
C
|
#include "libm.h"
|
||
|
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
|
||
|
long long llroundl(long double x)
|
||
|
{
|
||
|
return llround(x);
|
||
|
}
|
||
|
#else
|
||
|
#define type long double
|
||
|
#define roundit roundl
|
||
|
#define dtype long long
|
||
|
#define DTYPE_MIN LLONG_MIN
|
||
|
#define DTYPE_MAX LLONG_MAX
|
||
|
#define fn llroundl
|
||
|
|
||
|
#include "lround.c"
|
||
|
#endif
|