summaryrefslogtreecommitdiff
path: root/config_h.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2015-03-02 07:00:33 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2015-03-02 07:31:24 -0500
commit0cd93aca4e274765289e9e01d34c4a5dcf06df1c (patch)
tree369f65fc2eda40973b5d5ca2a025aa35b05f6667 /config_h.SH
parent923ed5809c063091fb0f77dc6f1b8231d587d13e (diff)
downloadperl-0cd93aca4e274765289e9e01d34c4a5dcf06df1c.tar.gz
Configure: add note about nvsize sometimes lying
Lying in case you expect that many bytes being used for NV.
Diffstat (limited to 'config_h.SH')
-rwxr-xr-xconfig_h.SH8
1 files changed, 7 insertions, 1 deletions
diff --git a/config_h.SH b/config_h.SH
index 03c67532fd..fb2224e270 100755
--- a/config_h.SH
+++ b/config_h.SH
@@ -1952,7 +1952,8 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
/* LONG_DOUBLESIZE:
* This symbol contains the size of a long double, so that the
* C preprocessor can make decisions based on it. It is only
- * defined if the system supports long doubles.
+ * defined if the system supports long doubles. Note that this
+ * is sizeof(long double), which may include unused bytes.
*/
/* HAS_LDEXPL:
* This symbol, if defined, indicates that the ldexpl routine is
@@ -4912,6 +4913,11 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
*/
/* NVSIZE:
* This symbol contains the sizeof(NV).
+ * Note that some floating point formats have unused bytes.
+ * The most notable example is the x86* 80-bit extended precision
+ * which comes in byte sizes of 12 and 16 (for 32 and 64 bit
+ * platforms, respectively), but which only uses 10 bytes.
+ * Perl compiled with -Duselongdouble on x86* is like this.
*/
/* NV_PRESERVES_UV:
* This symbol, if defined, indicates that a variable of type NVTYPE