blob: bf33c2e8a04d23845f76c730e30643983ca5bce2 [file] [log] [blame]
#ifndef __ASM_CRIS_DIV64
#define __ASM_CRIS_DIV64
/* copy from asm-arm */
/* We're not 64-bit, but... */
#define do_div(n,base) \
({ \
int __res; \
__res = ((unsigned long)n) % (unsigned int)base; \
n = ((unsigned long)n) / (unsigned int)base; \
__res; \
})
#endif