Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/util-linux/volume_id/volume_id_internal.h
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/util-linux/volume_id/volume_id_internal.h
r3232 r3621 97 97 #define SEEK_BUFFER_SIZE 0x10000 98 98 99 #define bswap16(x) (uint16_t) ( \100 (((uint16_t)(x) & 0x00ffu) << 8) | \101 (((uint16_t)(x) & 0xff00u) >> 8))102 103 #define bswap32(x) (uint32_t) ( \104 (((uint32_t)(x) & 0xff000000u) >> 24) | \105 (((uint32_t)(x) & 0x00ff0000u) >> 8) | \106 (((uint32_t)(x) & 0x0000ff00u) << 8) | \107 (((uint32_t)(x) & 0x000000ffu) << 24))108 109 #define bswap64(x) (uint64_t) ( \110 (((uint64_t)(x) & 0xff00000000000000ull) >> 56) | \111 (((uint64_t)(x) & 0x00ff000000000000ull) >> 40) | \112 (((uint64_t)(x) & 0x0000ff0000000000ull) >> 24) | \113 (((uint64_t)(x) & 0x000000ff00000000ull) >> 8) | \114 (((uint64_t)(x) & 0x00000000ff000000ull) << 8) | \115 (((uint64_t)(x) & 0x0000000000ff0000ull) << 24) | \116 (((uint64_t)(x) & 0x000000000000ff00ull) << 40) | \117 (((uint64_t)(x) & 0x00000000000000ffull) << 56))118 119 99 #if BB_LITTLE_ENDIAN 120 # define le16_to_cpu(x)(x)121 # define le32_to_cpu(x)(x)122 # define le64_to_cpu(x)(x)123 # define be16_to_cpu(x) bswap16(x)124 # define be32_to_cpu(x) bswap32(x)125 # define cpu_to_le16(x)(x)126 # define cpu_to_le32(x)(x)127 # define cpu_to_be32(x) bswap32(x)100 # define le16_to_cpu(x) (uint16_t)(x) 101 # define le32_to_cpu(x) (uint32_t)(x) 102 # define le64_to_cpu(x) (uint64_t)(x) 103 # define be16_to_cpu(x) (uint16_t)(bswap_16(x)) 104 # define be32_to_cpu(x) (uint32_t)(bswap_32(x)) 105 # define cpu_to_le16(x) (uint16_t)(x) 106 # define cpu_to_le32(x) (uint32_t)(x) 107 # define cpu_to_be32(x) (uint32_t)(bswap_32(x)) 128 108 #else 129 # define le16_to_cpu(x) bswap16(x)130 # define le32_to_cpu(x) bswap32(x)131 # define le64_to_cpu(x) bswap64(x)132 # define be16_to_cpu(x)(x)133 # define be32_to_cpu(x)(x)134 # define cpu_to_le16(x) bswap16(x)135 # define cpu_to_le32(x) bswap32(x)136 # define cpu_to_be32(x)(x)109 # define le16_to_cpu(x) (uint16_t)(bswap_16(x)) 110 # define le32_to_cpu(x) (uint32_t)(bswap_32(x)) 111 # define le64_to_cpu(x) (uint64_t)(bb_bswap_64(x)) 112 # define be16_to_cpu(x) (uint16_t)(x) 113 # define be32_to_cpu(x) (uint32_t)(x) 114 # define cpu_to_le16(x) (uint16_t)(bswap_16(x)) 115 # define cpu_to_le32(x) (uint32_t)(bswap_32(x)) 116 # define cpu_to_be32(x) (uint32_t)(x) 137 117 #endif 138 118 … … 190 170 /* FS */ 191 171 172 int FAST_FUNC volume_id_probe_bcache(struct volume_id *id /*,uint64_t off*/); 173 192 174 int FAST_FUNC volume_id_probe_btrfs(struct volume_id *id /*,uint64_t off*/); 193 175 … … 216 198 //int FAST_FUNC volume_id_probe_msdos_part_table(struct volume_id *id /*,uint64_t off*/); 217 199 200 int FAST_FUNC volume_id_probe_f2fs(struct volume_id *id /*,uint64_t off*/); 201 218 202 int FAST_FUNC volume_id_probe_nilfs(struct volume_id *id /*,uint64_t off*/); 219 203
Note:
See TracChangeset
for help on using the changeset viewer.