2 * Written by J.T. Conklin <jtc@netbsd.org>.
7 #if defined(LIBC_SCCS) && !defined(lint)
8 __RCSID("$NetBSD: a64l.c,v 1.8 2000/01/22 22:19:19 mycroft Exp $");
12 #include <sys/cdefs.h>
13 __FBSDID("$FreeBSD$");
18 #define ADOT 46 /* ASCII '.' */
19 #define ASLASH 47 /* ASCII '/' */
20 #define A0 48 /* ASCII '0' */
21 #define AA 65 /* ASCII 'A' */
22 #define Aa 97 /* ASCII 'a' */
32 for (i = 0; *s != '\0' && i < 6; i++, s++) {
34 digit = *s - ASLASH + 1;
35 else if (*s <= A0 + 9)
37 else if (*s <= AA + 25)
42 value |= digit << shift;