summaryrefslogtreecommitdiffstats
path: root/include/asm-s390x/div64.h
blob: 17824b1a2e5cdced4c1e2930e55aea1bc968619f (plain)
1
2
3
4
5
6
7
8
9
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