Lines Matching defs:bcd
227 static unsigned int incbcd(unsigned int *bcd,
232 unsigned int init = *bcd, i, j;
235 /* If bcd is not in BCD format, just increment */
237 *bcd += inc;
243 c = (*bcd >> (i << 2)) & 0xf;
244 c = c > 9 ? 9 : c; /* force to bcd just in case */
252 *bcd = 0;
259 *bcd += c << (i << 2);
283 /* Figure out if this entry is in bcd or hex format */
305 if (chi > max) /* If we are in bcd mode, truncate if necessary */