bc: convert to "G trick" - this returns bc to zero bss increase
[oweals/busybox.git] / util-linux / mkfs_ext2.c
index f524bc239d3e9251c18e1e90e78503cfc0502c2b..bda168f1e6c3e17b24efdb052312c797883241b0 100644 (file)
 #define EXT2_FLAGS_SIGNED_HASH   0x0001
 #define EXT2_FLAGS_UNSIGNED_HASH 0x0002
 
-// storage helpers
-char BUG_wrong_field_size(void);
-#define STORE_LE(field, value) \
-do { \
-       if (sizeof(field) == 4) \
-               field = SWAP_LE32((uint32_t)(value)); \
-       else if (sizeof(field) == 2) \
-               field = SWAP_LE16((uint16_t)(value)); \
-       else if (sizeof(field) == 1) \
-               field = (uint8_t)(value); \
-       else \
-               BUG_wrong_field_size(); \
-} while (0)
-
-#define FETCH_LE32(field) \
-       (sizeof(field) == 4 ? SWAP_LE32(field) : BUG_wrong_field_size())
-
 // All fields are little-endian
 struct ext2_dir {
        uint32_t inode1;