Lines Matching refs:dec
72 uint8_t dec; in hex2int() local
74 if ('0' <= hex && hex <= '9') dec = hex - '0'; in hex2int()
75 else if ('a' <= hex && hex <= 'f') dec = hex - 'a' + 10; in hex2int()
76 else if ('A' <= hex && hex <= 'F') dec = hex - 'A' + 10; in hex2int()
79 return dec; in hex2int()
90 int dec; in hex2bin() local
100 dec = hex2int(hex[0]); in hex2bin()
101 if (dec == -1) in hex2bin()
103 buf[0] = dec; in hex2bin()
111 dec = hex2int(hex[2 * i]); in hex2bin()
112 if (dec == -1) in hex2bin()
116 buf[i] = dec << 4; in hex2bin()
118 dec = hex2int(hex[ 2 * i + 1]); in hex2bin()
119 if (dec == -1) in hex2bin()
123 buf[i] += dec; in hex2bin()