Lines Matching refs:hex
127 static inline int hex2byte(char hex)
129 if('0' <= hex && hex <= '9')
130 return hex - '0';
131 if('a' <= hex && hex <= 'z')
132 return hex - 'a' + 0xa;
133 if('A' <= hex && hex <= 'Z')
134 return hex - 'A' + 0xa;
154 error("cannot convert odd len hex str: %s, len:%d to binary", str, len);
162 error("cannot convert hex: %s, len:%d to binary", str, len);
169 error("cannot convert hex: %s, len:%d to binary", str, len);