Home
last modified time | relevance | path

Searched refs:arr_3 (Results 1 – 2 of 2) sorted by relevance

/illumos-gate/usr/src/lib/libndmp/common/
H A Dlibndmp_base64.c68 char arr_3[3], arr_4[4]; in ndmp_base64_encode() local
78 arr_3[i++] = *(str_to_encode++); in ndmp_base64_encode()
80 arr_4[0] = (arr_3[0] & 0xfc) >> 2; in ndmp_base64_encode()
81 arr_4[1] = ((arr_3[0] & 0x03) << 4) + in ndmp_base64_encode()
82 ((arr_3[1] & 0xf0) >> 4); in ndmp_base64_encode()
83 arr_4[2] = ((arr_3[1] & 0x0f) << 2) + in ndmp_base64_encode()
84 ((arr_3[2] & 0xc0) >> 6); in ndmp_base64_encode()
85 arr_4[3] = arr_3[2] & 0x3f; in ndmp_base64_encode()
95 arr_3[j] = '\0'; in ndmp_base64_encode()
97 arr_4[0] = (arr_3[0] & 0xfc) >> 2; in ndmp_base64_encode()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_cfg.c253 char arr_3[3], arr_4[4]; in smb_base64_encode() local
262 arr_3[i++] = *(str_to_encode++); in smb_base64_encode()
264 arr_4[0] = (arr_3[0] & 0xfc) >> 2; in smb_base64_encode()
265 arr_4[1] = ((arr_3[0] & 0x03) << 4) + in smb_base64_encode()
266 ((arr_3[1] & 0xf0) >> 4); in smb_base64_encode()
267 arr_4[2] = ((arr_3[1] & 0x0f) << 2) + in smb_base64_encode()
268 ((arr_3[2] & 0xc0) >> 6); in smb_base64_encode()
269 arr_4[3] = arr_3[2] & 0x3f; in smb_base64_encode()
279 arr_3[j] = '\0'; in smb_base64_encode()
281 arr_4[0] = (arr_3[0] & 0xfc) >> 2; in smb_base64_encode()
[all …]