On Sunday 15 April 2007 08:33:12 pm you wrote:
> You need to take WORDS_BIGENDIAN macro into account, not blindly assume
> that we are running on a LE machine. Something like (as done in other
> DLLs):
>
> #ifdef WORDS_BIGENDIAN
> #define GET_BE_WORD(x) (x)
> #define GET_BE_DWORD(x) (x)
> #else
> #
Chris Robinson <[EMAIL PROTECTED]> wrote:
+static inline void flip_dword(DWORD *pVal)
+{
+DWORD val = *pVal;
+val = (val>>24) | ((val>>8)&0xFF00) |
+ ((val&0xFF00)<<8) | (val<<24);
+*pVal = val;
+}
+
+static inline void flip_word(WORD *pVal)
+{
+WORD val = *pVal;
+va