… | |
… | |
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 */ \ |