Mercurial > hg > octave-kai > gnulib-hg
comparison lib/strftime.c @ 5775:73ab05626d30
Propagate intprops.h comment fixes to mktime.c and strftime.c.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Sat, 26 Mar 2005 18:08:56 +0000 |
parents | f6f2b5cd0813 |
children | a48fb0e98c8c |
comparison
equal
deleted
inserted
replaced
5774:082be5ffacd4 | 5775:73ab05626d30 |
---|---|
118 #define SHR(a, b) \ | 118 #define SHR(a, b) \ |
119 (-1 >> 1 == -1 \ | 119 (-1 >> 1 == -1 \ |
120 ? (a) >> (b) \ | 120 ? (a) >> (b) \ |
121 : (a) / (1 << (b)) - ((a) % (1 << (b)) < 0)) | 121 : (a) / (1 << (b)) - ((a) % (1 << (b)) < 0)) |
122 | 122 |
123 /* Bound on length of the string representing an integer value or type T. | 123 /* Bound on length of the string representing an integer type or expression T. |
124 Subtract 1 for the sign bit if t is signed; log10 (2.0) < 146/485; | 124 Subtract 1 for the sign bit if t is signed; log10 (2.0) < 146/485; |
125 add 1 for integer division truncation; add 1 more for a minus sign | 125 add 1 for integer division truncation; add 1 more for a minus sign |
126 if needed. */ | 126 if needed. */ |
127 #define INT_STRLEN_BOUND(t) \ | 127 #define INT_STRLEN_BOUND(t) \ |
128 ((sizeof (t) * CHAR_BIT - 1) * 146 / 485 + 2) | 128 ((sizeof (t) * CHAR_BIT - 1) * 146 / 485 + 2) |