Lines Matching refs:hex
21 char *hex;
24 hex = hvb_malloc(len * 2 + 1);
25 if (hex == NULL)
29 hex[n * 2] = digits[value[n] >> 4];
30 hex[n * 2 + 1] = digits[value[n] & 0x0f];
32 hex[n * 2] = '\0';
34 return hex;
60 uint64_t hex;
62 hex = ((uint64_t)value[0]) << 56;
63 hex |= ((uint64_t)value[1]) << 48;
64 hex |= ((uint64_t)value[2]) << 40;
65 hex |= ((uint64_t)value[3]) << 32;
66 hex |= ((uint64_t)value[4]) << 24;
67 hex |= ((uint64_t)value[5]) << 16;
68 hex |= ((uint64_t)value[6]) << 8;
69 hex |= ((uint64_t)value[7]);
70 return hex;