Mercurial > hg > octave-lyh > gnulib-hg
changeset 5771:54b31b960b0d
(INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
"value of type" -> "type or expression" in comment.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 26 Mar 2005 17:47:53 +0000 |
parents | b0cee33b58dd |
children | cb318fac9b20 |
files | lib/intprops.h |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/intprops.h +++ b/lib/intprops.h @@ -53,13 +53,13 @@ ? (t) -1 \ : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))) -/* Bound on length of the string representing an integer value of type T. +/* Bound on length of the string representing an integer type or expression T. Subtract 1 for the sign bit if t is signed; log10 (2.0) < 146/485; add 1 for integer division truncation; add 1 more for a minus sign if needed. */ #define INT_STRLEN_BOUND(t) \ ((sizeof (t) * CHAR_BIT - 1) * 146 / 485 + 2) -/* Bound on buffer size needed to represent an integer value of type T, +/* Bound on buffer size needed to represent an integer type or expression T, including the terminating null. */ #define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1)