aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/lib.c
diff options
context:
space:
mode:
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2005-02-05 11:12:14 +0000
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2005-02-05 11:12:14 +0000
commit73445e880f2f9c8c06517a5594db70c1c6a68875 (patch)
tree0fc505a92cb3a656182324fd1c22e62133ce87bb /xen/common/lib.c
parent228e9fba605f0df29a0b3ee1432129ac607cff74 (diff)
downloadxen-73445e880f2f9c8c06517a5594db70c1c6a68875.tar.gz
xen-73445e880f2f9c8c06517a5594db70c1c6a68875.tar.bz2
xen-73445e880f2f9c8c06517a5594db70c1c6a68875.zip
bitkeeper revision 1.1159.212.95 (4204aa0ee0re5Xx1zWrJ9ejxzgRs3w)
Various cleanups. Remove PDB pending simpler GDB stub and/or NetBSD debugger. Force emacs mode to appropriate tabbing in various files. Signed-off-by: keir.fraser@cl.cam.ac.uk
Diffstat (limited to 'xen/common/lib.c')
-rw-r--r--xen/common/lib.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/xen/common/lib.c b/xen/common/lib.c
index b01d5a1727..d3f11e0fdd 100644
--- a/xen/common/lib.c
+++ b/xen/common/lib.c
@@ -1,3 +1,4 @@
+/* -*- Mode:C; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */
#include <xen/ctype.h>
#include <xen/lib.h>
@@ -394,9 +395,9 @@ __udivdi3(a, b)
*/
u64 __umoddi3(u64 a, u64 b)
{
- u64 rem;
- __qdivrem(a, b, &rem);
- return rem;
+ u64 rem;
+ __qdivrem(a, b, &rem);
+ return rem;
}
/*
@@ -425,19 +426,18 @@ s64 __moddi3(s64 a, s64 b)
ub = b, neg2 = 0;
__qdivrem(ua, ub, &urem);
- /* There 4 different cases: */
- if(neg1)
- {
- if(neg2)
- return -urem;
- else
- return ub - urem;
- }
- else
- if(neg2)
- return -ub + urem;
- else
- return urem;
+ /* There 4 different cases: */
+ if (neg1) {
+ if (neg2)
+ return -urem;
+ else
+ return ub - urem;
+ } else {
+ if (neg2)
+ return -ub + urem;
+ else
+ return urem;
+ }
}
#endif /* BITS_PER_LONG == 32 */