summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2015-06-06 08:47:11 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2015-06-06 08:47:11 -0400
commit568793b67ae7b3c7362197be564525b48ddb2342 (patch)
tree492941bbe5eca4aed87acbead42fc65868355821
parent216b41c2e7ca756cac276d5de6435f6dac31b86f (diff)
downloadperl-568793b67ae7b3c7362197be564525b48ddb2342.tar.gz
quadmath: long long versus round/trunc
-rw-r--r--ext/POSIX/POSIX.xs11
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