1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

* stdlib/a64l.c: Expect least significant digit first.

* stdlib/l64a.c: Produce least significant digit first. 
* stdlib/Makefile (tests): Add test-a64l. 
* stdlib/test-a64l.c: New file.
This commit is contained in:
Andreas Schwab
2001-10-25 10:20:40 +00:00
parent 412420ee83
commit ab1c32a698
4 changed files with 82 additions and 7 deletions

View File

@@ -43,6 +43,7 @@ a64l (string)
const char *ptr = string;
unsigned long int result = 0ul;
const char *end = ptr + 6;
int shift = 0;
do
{
@@ -55,9 +56,9 @@ a64l (string)
value = (int) a64l_table[index];
if (value == (int) XX)
break;
result <<= 6;
++ptr;
result |= value;
result |= value << shift;
shift += 6;
}
while (ptr != end);