|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [patch] Added dev64.h file provided by linux include set but no
Signed off by Maria Butrico <butrico@xxxxxxxxxxxxxx>
summary: Added dev64.h file provided by linux include set but not by gcc
include set
diff -r 1b222c9ed5d6 -r 28ea10d90b23 xen/include/asm-ppc/div64.h
--- /dev/null Thu Jan 1 00:00:00 1970 +0000
+++ b/xen/include/asm-ppc/div64.h Wed Mar 8 13:34:53 2006 -0500
@@ -0,0 +1,18 @@
+#ifndef __PPC_DIV64
+#define __PPC_DIV64
+
+/* Copyright 2001 PPC64 Team, IBM Corp
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version
+ * 2 of the License, or (at your option) any later version.
+ */
+
+#define do_div(n,base) ({ \
+ int __res; \
+ __res = ((unsigned long) (n)) % (unsigned) (base); \
+ (n) = ((unsigned long) (n)) / (unsigned) (base); \
+ __res; })
+
+#endif
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [XenPPC] [patch] Added dev64.h file provided by linux include set but not by gcc include set,
Maria Butrico <=
|
|
|
|
|