| View previous topic :: View next topic |
| Author |
Message |
Shazz

Joined: 31 Aug 2004 Posts: 244 Location: Somewhere over the rainbow
|
Posted: Sun Nov 20, 2005 4:12 am Post subject: GNU lib C inet functions ? |
|
|
Hello,
I'm porting a piece of code using ntohl, ntohs Byte Order Conversion functions. Shouldn't we have then in the toolchain ? Else does somebody have a simple stub or implementation for them ?
Thanks _________________ - TiTAN Art Division -
http://www.titandemo.org |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Tue Nov 22, 2005 2:53 am Post subject: |
|
|
| Code: | #define ntohs(x) __builtin_allegrex_wsbh(x)
#define ntohl(x) __builtin_allegrex_wsbw(x) |
|
|
| Back to top |
|
 |
Shazz

Joined: 31 Aug 2004 Posts: 244 Location: Somewhere over the rainbow
|
Posted: Tue Nov 22, 2005 5:40 am Post subject: |
|
|
Ah ah works perfect !
You're a master Marcus ;-)
Many thanks ! _________________ - TiTAN Art Division -
http://www.titandemo.org |
|
| Back to top |
|
 |
|