aboutsummaryrefslogtreecommitdiff
path: root/src/xz/util.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2010-01-31 18:17:50 +0200
committerLasse Collin <lasse.collin@tukaani.org>2010-01-31 18:17:50 +0200
commit96a4f840e3b9ca5c81e5711ff9c267b194f93ef1 (patch)
tree3537787a03d694748415c014bcdf718753f59b0b /src/xz/util.h
parentDon't use uninitialized sigset_t. (diff)
downloadxz-96a4f840e3b9ca5c81e5711ff9c267b194f93ef1.tar.xz
Improve displaying of the memory usage limit.
Diffstat (limited to '')
-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