static inline u64
wim_resource_chunks(const struct wim_lookup_table_entry *lte)
{
- return (wim_resource_size(lte) + WIM_CHUNK_SIZE - 1) / WIM_CHUNK_SIZE;
+ return DIV_ROUND_UP(wim_resource_size(lte), WIM_CHUNK_SIZE);
}
static inline u64
}
extern struct wim_lookup_table *
-new_lookup_table(size_t capacity);
+new_lookup_table(size_t capacity) _malloc_attribute;
extern int
read_lookup_table(WIMStruct *w);
}
extern struct wim_lookup_table_entry *
-new_lookup_table_entry(void);
+new_lookup_table_entry(void) _malloc_attribute;
extern struct wim_lookup_table_entry *
-clone_lookup_table_entry(const struct wim_lookup_table_entry *lte);
+clone_lookup_table_entry(const struct wim_lookup_table_entry *lte)
+ _malloc_attribute;
extern void
print_lookup_table_entry(const struct wim_lookup_table_entry *entry,