Searched refs:BCD_TO_BYTE (Results 1 - 1 of 1) sorted by relevance

/osnet-11/usr/src/lib/libprtdiag/common/
H A Ddisplay_funcs.c73 #define BCD_TO_BYTE(x) bcd_to_byte[(x) & 0xff] macro
94 year = BCD_TO_BYTE(mostek[6]) + YRBASE;
95 month = BCD_TO_BYTE(mostek[5] & 0x1f) + ((year & 3) << 4);
96 day = BCD_TO_BYTE(mostek[4] & 0x3f);
97 hour = BCD_TO_BYTE(mostek[2] & 0x3f);
98 min = BCD_TO_BYTE(mostek[1] & 0x7f);
99 sec = BCD_TO_BYTE(mostek[0] & 0x7f);

Completed in 14 milliseconds