aboutsummaryrefslogtreecommitdiffstats
path: root/memdump
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:36 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:10:36 -0700
commit19346b78495e5315cd4bdcbceb600196e55d6a70 (patch)
tree8c6b98c0ce1cf206a505c4cd599c28b1c111fc5f /memdump
parent1dd92034cab8f99fa573e913214faeb36783493c (diff)
downloadsyslinux-19346b78495e5315cd4bdcbceb600196e55d6a70.tar.gz
syslinux-19346b78495e5315cd4bdcbceb600196e55d6a70.tar.xz
syslinux-19346b78495e5315cd4bdcbceb600196e55d6a70.zip
Run Nindent on memdump/__udivmoddi4.c
Automatically reformat memdump/__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 <hpa@zytor.com>
Diffstat (limited to 'memdump')
-rw-r--r--memdump/__udivmoddi4.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/memdump/__udivmoddi4.c b/memdump/__udivmoddi4.c
index 8e7661f5..ca476b70 100644
--- a/memdump/__udivmoddi4.c
+++ b/memdump/__udivmoddi4.c
@@ -1,31 +1,31 @@
#include <stdint.h>
-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 ) {
- asm volatile("int $0");
- return 0; /* If trap returns... */
- }
+ if (den == 0) {
+ asm volatile ("int $0");
+ 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;
}