[TriLUG] Ten Little ENDIANS
Tarus Balog
tarus at sortova.com
Mon Mar 24 22:56:11 EST 2003
Brian Weaver said:
> This routine should byte swap a 64-bit number from little endian to big
> endian, and back again.
> long long swap_64(register long long val)
snip
> return val;
The compiler seemed upset that the function returned a registered
variable, it compiled fine when I removed "register" from the declaration.
However, it doesn't appear to really matter, as removing the byteswap.h
code and adding this code results in the same "__udivdi3" undefined symbol
error.
I am more convinced than ever that it is a gcc/lib issue.
Many thanks, however, for your help.
-T
--
Tarus Balog
Consultant
Sortova Consulting Group, http://www.sortova.com
+1-919-696-7625
tarus at sortova.com
More information about the TriLUG
mailing list