2 * Written by J.T. Conklin <jtc@NetBSD.org>.
7 #if defined(LIBC_SCCS) && !defined(lint)
8 __RCSID("$NetBSD: a64l.c,v 1.9 2003/07/26 19:24:53 salo Exp $");
11 #include "namespace.h"
17 __weak_alias(a64l
,_a64l
)
24 long value
, digit
, shift
;
27 _DIAGASSERT(s
!= NULL
);
31 for (i
= 0; *s
&& i
< 6; i
++, s
++) {
37 digit
= *s
- 'A' + 12;
39 digit
= *s
- 'a' + 38;
41 value
|= digit
<< shift
;