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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user