1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix 64 bit xlate consts.

This commit is contained in:
Alasdair Kergon 2005-01-20 18:13:17 +00:00
parent da73b38d1a
commit 894a05fffa
2 changed files with 9 additions and 8 deletions

View File

@ -1,5 +1,6 @@
Version 2.01.02 - Version 2.01.02 -
=================================== ===================================
Fix 64 bit xlate consts.
Split out pool sptype_names to avoid unused const. Split out pool sptype_names to avoid unused const.
Always fail if random id generation fails. Always fail if random id generation fails.
Recognise gnbd devices. Recognise gnbd devices.

View File

@ -27,14 +27,14 @@
((x) & 0xff000000U) >> 24 | \ ((x) & 0xff000000U) >> 24 | \
((x) & 0x0000ff00U) << 8 | \ ((x) & 0x0000ff00U) << 8 | \
((x) & 0x00ff0000U) >> 8) ((x) & 0x00ff0000U) >> 8)
# define bswap_64(x) (((x) & 0x00000000000000ffU) << 56 | \ # define bswap_64(x) (((x) & 0x00000000000000ffULL) << 56 | \
((x) & 0xff00000000000000U) >> 56 | \ ((x) & 0xff00000000000000ULL) >> 56 | \
((x) & 0x000000000000ff00U) << 40 | \ ((x) & 0x000000000000ff00ULL) << 40 | \
((x) & 0x00ff000000000000U) >> 40 | \ ((x) & 0x00ff000000000000ULL) >> 40 | \
((x) & 0x0000000000ff0000U) << 24 | \ ((x) & 0x0000000000ff0000ULL) << 24 | \
((x) & 0x0000ff0000000000U) >> 24 | \ ((x) & 0x0000ff0000000000ULL) >> 24 | \
((x) & 0x00000000ff000000U) << 8 | \ ((x) & 0x00000000ff000000ULL) << 8 | \
((x) & 0x000000ff00000000U) >> 8) ((x) & 0x000000ff00000000ULL) >> 8)
#endif #endif
#if BYTE_ORDER == LITTLE_ENDIAN #if BYTE_ORDER == LITTLE_ENDIAN