> What about macros to make it portable and universal? Not sure why it concatenated line... <sigh>
#ifdef WORD_ACCESS_PROCESSOR #if BYTE_ORDER == LITTLE_ENDIAN #define _W(w) ((*(u8_t*) &(w))+(*(((u8_t*) &(w))+1)<<8)) #endif #if BYTE_ORDER == BIG_ENDIAN #define _W(w) (*(((u8_t*) &(w))+1)+(*((u8_t*) &(w))<<8)) #endif #else #define _W(w) w #endif Bill _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
