summaryrefslogtreecommitdiff
path: root/config_h.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-23 09:18:41 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-23 09:18:41 +0000
commitb68c599a1231c4d11ec0b0a667ce0c407c357eab (patch)
treed5ae12e45397be6d6266d7a947752951af4a968f /config_h.SH
parentd2aeed1648166d254ac68525c35b77dec4ba8772 (diff)
downloadperl-b68c599a1231c4d11ec0b0a667ce0c407c357eab.tar.gz
Fix the misplaced warnings and failing tests caused by the precision
loss warning on ++ and -- by moving the check to Configure time, creating a new config.sh variable nv_overflows_integers_at which contains an constant expression for the value of the NV which can't be incremented by 1.0 p4raw-id: //depot/perl@33049
Diffstat (limited to 'config_h.SH')
-rw-r--r--config_h.SH7
1 files changed, 7 insertions, 0 deletions
diff --git a/config_h.SH b/config_h.SH
index 16160e5e07..47604e9660 100644
--- a/config_h.SH
+++ b/config_h.SH
@@ -4300,6 +4300,12 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
* This symbol contains the number of bits a variable of type NVTYPE
* can preserve of a variable of type UVTYPE.
*/
+/* NV_OVERFLOWS_INTEGERS_AT
+ * This symbol gives the largest integer value that NVs can hold. This
+ * value + 1.0 cannot be stored accurately. It is expressed as constant
+ * floating point expression to reduce the chance of decimale/binary
+ * conversion issues. If it can not be determined, the value 0 is given.
+ */
/* NV_ZERO_IS_ALLBITS_ZERO:
* This symbol, if defined, indicates that a variable of type NVTYPE
* stores 0.0 in memory as all bits zero.
@@ -4332,6 +4338,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
#define NVSIZE $nvsize /**/
#$d_nv_preserves_uv NV_PRESERVES_UV
#define NV_PRESERVES_UV_BITS $nv_preserves_uv_bits
+#define NV_OVERFLOWS_INTEGERS_AT $nv_overflows_integers_at
#$d_nv_zero_is_allbits_zero NV_ZERO_IS_ALLBITS_ZERO
#if UVSIZE == 8
# ifdef BYTEORDER