2 * Written by J.T. Conklin <jtc@NetBSD.org>.
7 #if defined(LIBC_SCCS) && !defined(lint)
8 __RCSID("$NetBSD: a64l.c,v 1.10 2012/06/08 11:15:26 abs Exp $");
11 #include "namespace.h"
17 __weak_alias(a64l
,_a64l
)
23 long value
, digit
, shift
;
26 _DIAGASSERT(s
!= NULL
);
30 for (i
= 0; *s
&& i
< 6; i
++, s
++) {
36 digit
= *s
- 'A' + 12;
38 digit
= *s
- 'a' + 38;
40 value
|= digit
<< shift
;