Searched refs:base32hexchar (Results 1 – 3 of 3) sorted by relevance
171 char base32hexchar(int x) { in base32hexchar() function229 *(z++) = base32hexchar(x[0] >> 3); /* 000XXXXX */ in base32hexmem()230 *(z++) = base32hexchar((x[0] & 7) << 2 | x[1] >> 6); /* 000XXXYY */ in base32hexmem()231 *(z++) = base32hexchar((x[1] & 63) >> 1); /* 000YYYYY */ in base32hexmem()232 *(z++) = base32hexchar((x[1] & 1) << 4 | x[2] >> 4); /* 000YZZZZ */ in base32hexmem()233 *(z++) = base32hexchar((x[2] & 15) << 1 | x[3] >> 7); /* 000ZZZZQ */ in base32hexmem()234 *(z++) = base32hexchar((x[3] & 127) >> 2); /* 000QQQQQ */ in base32hexmem()235 *(z++) = base32hexchar((x[3] & 3) << 3 | x[4] >> 5); /* 000QQWWW */ in base32hexmem()236 *(z++) = base32hexchar((x[4] & 31)); /* 000WWWWW */ in base32hexmem()241 *(z++) = base32hexchar(x[0] >> 3); /* 000XXXXX */ in base32hexmem()[all …]
26 char base32hexchar(int x) _const_;
23 TEST(base32hexchar) { in TEST() argument24 assert_se(base32hexchar(0) == '0'); in TEST()25 assert_se(base32hexchar(9) == '9'); in TEST()26 assert_se(base32hexchar(10) == 'A'); in TEST()27 assert_se(base32hexchar(31) == 'V'); in TEST()