diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2015-06-06 08:47:11 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2015-06-06 08:47:11 -0400 |
commit | 568793b67ae7b3c7362197be564525b48ddb2342 (patch) | |
tree | 492941bbe5eca4aed87acbead42fc65868355821 | |
parent | 216b41c2e7ca756cac276d5de6435f6dac31b86f (diff) | |
download | perl-568793b67ae7b3c7362197be564525b48ddb2342.tar.gz |
quadmath: long long versus round/trunc
-rw-r--r-- | ext/POSIX/POSIX.xs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ext/POSIX/POSIX.xs b/ext/POSIX/POSIX.xs index a81df9599c..535fccf328 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 |