From f495cc1e93710c233292a503720ec235a61b685c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 18 Mar 2020 17:32:50 +0100 Subject: Applied official linux kernel code style guidelines Due to my change to vim and the clang-format plugin this was needed! --- src/kernel/lib/math/pow.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/kernel/lib/math/pow.c') diff --git a/src/kernel/lib/math/pow.c b/src/kernel/lib/math/pow.c index 24670a0..5cdcfa5 100644 --- a/src/kernel/lib/math/pow.c +++ b/src/kernel/lib/math/pow.c @@ -1,10 +1,13 @@ int pow(int base, int exp) { - if (exp < 0) return 0; + if (exp < 0) + return 0; - if (!exp) return 1; + if (!exp) + return 1; - int ret = base; - for (int i = 1; i < exp; i++) ret *= base; - return ret; + int ret = base; + for (int i = 1; i < exp; i++) + ret *= base; + return ret; } \ No newline at end of file -- cgit v1.2.3