ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libecb/ecb.h
(Generate patch)

Comparing libecb/ecb.h (file contents):
Revision 1.200 by root, Fri Aug 20 20:12:33 2021 UTC vs.
Revision 1.201 by root, Fri Aug 20 20:13:20 2021 UTC

1038 * format becomes 5.27, 6.26 and so on. 1038 * format becomes 5.27, 6.26 and so on.
1039 * The rest involves only advancing the pointer if we already generated a 1039 * The rest involves only advancing the pointer if we already generated a
1040 * non-zero digit, so leading zeroes are overwritten. 1040 * non-zero digit, so leading zeroes are overwritten.
1041 */ 1041 */
1042 1042
1043/* simply return a mask with "bits" bits set *7 1043/* simply return a mask with "bits" bits set */
1044#define ecb_i2a_mask(type,bits) ((((type)1) << (bits)) - 1) 1044#define ecb_i2a_mask(type,bits) ((((type)1) << (bits)) - 1)
1045 1045
1046/* oputput a single digit. maskvalue is 10**digitidx */ 1046/* oputput a single digit. maskvalue is 10**digitidx */
1047#define ecb_i2a_digit(type,bits,digitmask,maskvalue,digitidx) \ 1047#define ecb_i2a_digit(type,bits,digitmask,maskvalue,digitidx) \
1048 if (digitmask >= maskvalue) /* constant, used to decide how many digits to generate */ \ 1048 if (digitmask >= maskvalue) /* constant, used to decide how many digits to generate */ \

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines