Diff for /dietlibc/dietstring.h between versions 1.1 and 1.2

version 1.1, 2003/12/21 12:06:36 version 1.2, 2008/02/19 00:28:13
Line 11 Line 11
 # define STRALIGN(x) (((unsigned long)x&3)?4-((unsigned long)x&3):0)  # define STRALIGN(x) (((unsigned long)x&3)?4-((unsigned long)x&3):0)
 #endif  #endif
   
   /* GFC(x)    - returns first character */
   /* INCSTR(x) - moves to next character */
   #if __BYTE_ORDER == __LITTLE_ENDIAN
   # define GFC(x) ((x)&0xff)
   # define INCSTR(x) do { x >>= 8; } while (0)
   #else
   # define GFC(x) (((x)>>(sizeof(x)*8-8))&0xff)
   # define INCSTR(x) do { x <<= 8; } while (0)
   #endif
   
 #define UNALIGNED(x,y) (((unsigned long)x & (sizeof (unsigned long)-1)) ^ ((unsigned long)y & (sizeof (unsigned long)-1)))  #define UNALIGNED(x,y) (((unsigned long)x & (sizeof (unsigned long)-1)) ^ ((unsigned long)y & (sizeof (unsigned long)-1)))
   
 #endif /* _DIET_STRING_H_ */  #endif /* _DIET_STRING_H_ */

Removed from v.1.1  
changed lines
  Added in v.1.2


LinuxTV legacy CVS <linuxtv.org/cvs>