From: H. Peter Anvin Date: Fri, 29 May 2009 22:10:23 +0000 (-0700) Subject: Run Nindent on com32/lib/libgcc/__udivmoddi4.c X-Git-Tag: syslinux-3.83-pre2~322 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4301a36e5c0bd0bdc536f0d1ac914860df46b6a8;p=platform%2Fupstream%2Fsyslinux.git Run Nindent on com32/lib/libgcc/__udivmoddi4.c Automatically reformat com32/lib/libgcc/__udivmoddi4.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin --- diff --git a/com32/lib/libgcc/__udivmoddi4.c b/com32/lib/libgcc/__udivmoddi4.c index ad57680..dd60263 100644 --- a/com32/lib/libgcc/__udivmoddi4.c +++ b/com32/lib/libgcc/__udivmoddi4.c @@ -1,32 +1,32 @@ #include #include -uint64_t __udivmoddi4(uint64_t num, uint64_t den, uint64_t *rem_p) +uint64_t __udivmoddi4(uint64_t num, uint64_t den, uint64_t * rem_p) { - uint64_t quot = 0, qbit = 1; + uint64_t quot = 0, qbit = 1; - if ( den == 0 ) { - __divide_error(); - return 0; /* If trap returns... */ - } + if (den == 0) { + __divide_error(); + return 0; /* If trap returns... */ + } - /* Left-justify denominator and count shift */ - while ( (int64_t)den >= 0 ) { - den <<= 1; - qbit <<= 1; - } + /* Left-justify denominator and count shift */ + while ((int64_t) den >= 0) { + den <<= 1; + qbit <<= 1; + } - while ( qbit ) { - if ( den <= num ) { - num -= den; - quot += qbit; + while (qbit) { + if (den <= num) { + num -= den; + quot += qbit; + } + den >>= 1; + qbit >>= 1; } - den >>= 1; - qbit >>= 1; - } - if ( rem_p ) - *rem_p = num; + if (rem_p) + *rem_p = num; - return quot; + return quot; }