5 static const char digits
[] =
6 "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
8 long a64l(const char *s
)
12 for (e
=0; e
<36 && *s
; e
+=6, s
++) {
13 const char *d
= strchr(digits
, *s
);
15 x
|= (uint32_t)(d
-digits
)<<e
;
25 for (p
=s
; x
; p
++, x
>>=6)