aboutsummaryrefslogtreecommitdiff
path: root/src/xz/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/xz/util.h')
-rw-r--r--src/xz/util.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xz/util.h b/src/xz/util.h
index 67bf3075..2e08b4a8 100644
--- a/src/xz/util.h
+++ b/src/xz/util.h
@@ -41,6 +41,12 @@ extern uint64_t str_to_uint64(const char *name, const char *value,
uint64_t min, uint64_t max);
+/// \brief Round an integer up to the next full MiB and convert to MiB
+///
+/// This is used when printing memory usage and limit.
+extern uint64_t round_up_to_mib(uint64_t n);
+
+
/// \brief Convert uint64_t to a string
///
/// Convert the given value to a string with locale-specific thousand