From 0d1dbeb3a4c5c86eba5125d43488da7bec16ea0e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 27 Oct 2015 01:03:38 +0100 Subject: macro: move DECIMAL_STR_WIDTH() into macro.h So that it sets next to DECIMAL_STR_MAX(), where it belongs. --- src/basic/util.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/basic/util.h') diff --git a/src/basic/util.h b/src/basic/util.h index 078c4313b5..fc73e13fe4 100644 --- a/src/basic/util.h +++ b/src/basic/util.h @@ -237,15 +237,6 @@ static inline unsigned log2u_round_up(unsigned x) { return log2u(x - 1) + 1; } -#define DECIMAL_STR_WIDTH(x) \ - ({ \ - typeof(x) _x_ = (x); \ - unsigned ans = 1; \ - while (_x_ /= 10) \ - ans++; \ - ans; \ - }) - #define alloca0(n) \ ({ \ char *_new_; \ -- cgit v1.2.3-54-g00ecf