summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2015-03-01 20:16:02 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2015-06-12 09:57:35 -0400
commit5a14060af165c24c63cfc5d5f4d2aeb52cc41a03 (patch)
tree26db0d9bb4b48117522fb2628129bdc65007a454 /Configure
parentf37aa82892bb09ff8e8c3d28b173de5d2f60d2a4 (diff)
downloadperl-5a14060af165c24c63cfc5d5f4d2aeb52cc41a03.tar.gz
infnan: move the mantbits definitions from perl.h to Configure
(this way they will be available via %Config)
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure17
1 files changed, 17 insertions, 0 deletions
diff --git a/Configure b/Configure
index d502690545..ef2243207c 100755
--- a/Configure
+++ b/Configure
@@ -1180,6 +1180,7 @@ ivsize=''
ivtype=''
nv_overflows_integers_at=''
nv_preserves_uv_bits=''
+nvmantbits=''
nvsize=''
nvtype=''
u16size=''
@@ -18834,6 +18835,21 @@ else
fi
$rm_try
+$echo "Checking how many mantissa bits your NVs have..." >&4
+if test "X$usequadmath" = "X$define"; then
+ nvmantbits=112 # 128-1-15
+else
+ if test "X$nvsize" = "X$doublesize"; then
+ nvmantbits="$doublemantbits"
+ else
+ if test "X$nvsize" = "X$longdblsize"; then
+ nvmantbits="$longdblmantbits"
+ else
+ nvmantbits="$undef"
+ fi
+ fi
+fi
+
: see if sigprocmask exists
set sigprocmask d_sigprocmask
eval $inlibc
@@ -24840,6 +24856,7 @@ nv_preserves_uv_bits='$nv_preserves_uv_bits'
nveformat='$nveformat'
nvfformat='$nvfformat'
nvgformat='$nvgformat'
+nvmantbits='$nvmantbits'
nvsize='$nvsize'
nvtype='$nvtype'
o_nonblock='$o_nonblock'