summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/div64.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc/div64.h')
-rw-r--r--include/asm-ppc/div64.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-ppc/div64.h b/include/asm-ppc/div64.h
new file mode 100644
index 000000000..114e6ab34
--- /dev/null
+++ b/include/asm-ppc/div64.h
@@ -0,0 +1,10 @@
+#ifndef __PPC_DIV64
+#define __PPC_DIV64
+
+#define do_div(n,base) ({ \
+int __res; \
+__res = ((unsigned long) n) % (unsigned) base; \
+n = ((unsigned long) n) / (unsigned) base; \
+__res; })
+
+#endif