diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-02-16 21:02:07 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-02-18 09:24:00 +0100 |
commit | f53b916b01e26ed200718b9ed736fea18605ce9c (patch) | |
tree | 6bdbb687ed54918af7880e3a5c2a70c682116aed /lib | |
parent | 4665e1688440d0f381d3484adc00b195db033c3c (diff) | |
download | barebox-f53b916b01e26ed200718b9ed736fea18605ce9c.tar.gz barebox-f53b916b01e26ed200718b9ed736fea18605ce9c.tar.xz |
show_progress: change HASHES_PER_LINE from 65 to 64 to avoid division
Decreasing the progress bar length by one won't change visuals much,
but will allow the compiler to optimize a multiplication and a modulo
into bitwise operations.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/show_progress.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/show_progress.c b/lib/show_progress.c index 85085790f6..d797ec28d8 100644 --- a/lib/show_progress.c +++ b/lib/show_progress.c @@ -19,7 +19,7 @@ #include <progress.h> #include <asm-generic/div64.h> -#define HASHES_PER_LINE 65 +#define HASHES_PER_LINE 64 static int printed; static int progress_max; |