From a8b22a5eed61b2fac2ffffa1b87cbd9c7a5f9da6 Mon Sep 17 00:00:00 2001 From: Christophe Grenier Date: Fri, 25 Aug 2023 11:39:22 +0200 Subject: [PATCH] src/fat_adv.c: move up2power() from src/common.c --- src/common.c | 19 ------------------- src/common.h | 5 ----- src/fat_adv.c | 23 +++++++++++++++++++++++ 3 files changed, 23 insertions(+), 24 deletions(-) diff --git a/src/common.c b/src/common.c index 6737c575..9a77b93f 100644 --- a/src/common.c +++ b/src/common.c @@ -188,25 +188,6 @@ struct tm *localtime_r(const time_t *timep, struct tm *result) } #endif -/*@ - @ decreases number; - @ assigns \nothing; - @*/ -static unsigned int up2power_aux(const unsigned int number) -{ - if(number==0) - return 0; - else - return(1+up2power_aux(number/2)); -} - -unsigned int up2power(const unsigned int number) -{ - if(number==0) - return 1; - return (1<