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