"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/portable_endian.h" between
n2n-2.8.tar.gz and n2n-3.0.tar.gz

About: n2n is a layer-two peer-to-peer virtual private network (VPN) which allows bypassing intermediate firewalls.

portable_endian.h  (n2n-2.8):portable_endian.h  (n2n-3.0)
skipping to change at line 138 skipping to change at line 138
# define htobe16(x) _byteswap_ushort(x) # define htobe16(x) _byteswap_ushort(x)
# define htole16(x) (x) # define htole16(x) (x)
# define be16toh(x) _byteswap_ushort(x) # define be16toh(x) _byteswap_ushort(x)
# define le16toh(x) (x) # define le16toh(x) (x)
# define htobe32(x) _byteswap_ulong(x) # define htobe32(x) _byteswap_ulong(x)
# define htole32(x) (x) # define htole32(x) (x)
# define be32toh(x) _byteswap_ulong(x) # define be32toh(x) _byteswap_ulong(x)
# define le32toh(x) (x) # define le32toh(x) (x)
# define htobe64(x) _byteswap_uint64(x) # define htobe64(x) (((uint64_t)htobe32(((uint32_t)(((uint64_t)(x)) >> 32)
# define be64toh(x) _byteswap_uint64(x) )) & 0x00000000FFFFFFFFULL) | (((uint64_t)htobe32(((uint32_t)(x)))) << 32))
# define be64toh(x) (((uint64_t)be32toh(((uint32_t)(((uint64_t)(x)) >> 32)
)) & 0x00000000FFFFFFFFULL) | (((uint64_t)be32toh(((uint32_t)(x)))) << 32))
# define htole64(x) (x) # define htole64(x) (x)
# define le64toh(x) (x) # define le64toh(x) (x)
# elif BYTE_ORDER == BIG_ENDIAN # elif BYTE_ORDER == BIG_ENDIAN
/* that would be xbox 360 */ /* that would be xbox 360 */
# define htobe16(x) (x) # define htobe16(x) (x)
# define htole16(x) __builtin_bswap16(x) # define htole16(x) __builtin_bswap16(x)
# define be16toh(x) (x) # define be16toh(x) (x)
# define le16toh(x) __builtin_bswap16(x) # define le16toh(x) __builtin_bswap16(x)
 End of changes. 1 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)