Lines Matching defs:bcd
239 static unsigned int incbcd(unsigned int *bcd,
244 unsigned int init = *bcd, i, j;
247 /* If bcd is not in BCD format, just increment */
249 *bcd += inc;
255 c = (*bcd >> (i << 2)) & 0xf;
256 c = c > 9 ? 9 : c; /* force to bcd just in case */
264 *bcd = 0;
271 *bcd += c << (i << 2);
295 /* Figure out if this entry is in bcd or hex format */
317 if (chi > max) /* If we are in bcd mode, truncate if necessary */