From 568793b67ae7b3c7362197be564525b48ddb2342 Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Sat, 6 Jun 2015 08:47:11 -0400 Subject: [PATCH] quadmath: long long versus round/trunc --- ext/POSIX/POSIX.xs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index a81df95..535fccf 100644 --- a/ext/POSIX/POSIX.xs +++ b/ext/POSIX/POSIX.xs @@ -248,12 +248,15 @@ # define c99_ilogb ilogbq # define c99_lgamma lgammaq # define c99_log1p log1pq -# define c99_llrint llrintq # define c99_log2 log2q /* no logbq */ -# define c99_lround llroundq -# define c99_lrint lrintq -# define c99_lround lroundq +# if defined(USE_64_BIT_INT) && QUADKIND == QUAD_IS_LONG_LONG +# define c99_lrint llrintq +# define c99_lround llroundq +# else +# define c99_lrint lrintq +# define c99_lround lroundq +# endif # define c99_nan nanq # define c99_nearbyint nearbyintq # define c99_nextafter nextafterq -- 1.8.3.1