Artem B. Bityuckiy
Tue Sep 16 14:42:00 GMT 2003
I'm porting several peaces from FreeBSD to Newlib. FreeBSD's code needs
ntons() and htonl() functions. These functions aren't the part of Newlib.
To implement these functions in the machine independent manner I need
functions like word_swap, etc or macros like BIG_ENDIAN. I can implement
my own private versions of htons(), etc using these macros. But may be
it is more correct to to create file like machine/endian.h.
What is the best that I can do?
More information about the Newlib