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
GNU lib C inet functions ?
GNU lib C inet functions ?
- TiTAN Art Division -
http://www.titandemo.org
http://www.titandemo.org
Code: Select all
#define ntohs(x) __builtin_allegrex_wsbh(x)
#define ntohl(x) __builtin_allegrex_wsbw(x)
Ah ah works perfect !
You're a master Marcus ;-)
Many thanks !
You're a master Marcus ;-)
Many thanks !
- TiTAN Art Division -
http://www.titandemo.org
http://www.titandemo.org