Format: AllC/C++CSSTextshell script Advanced Search
44: /* binary <-> BCD conversion */ 45: #define BCDtoBIN(v) (((v) >> 4) * 10 + ((v) & 0xF)) 46: #define BINtoBCD(v) ((((v) / 10) << 4) + ((v) % 10))