[xtensa-cvscommit] linux/include/asm-xtensa div64.h,1.2,1.3
Brought to you by:
zankel
|
From: <jgr...@us...> - 2003-03-12 00:36:35
|
Update of /cvsroot/xtensa/linux/include/asm-xtensa
In directory sc8-pr-cvs1:/tmp/cvs-serv25808
Modified Files:
div64.h
Log Message:
Correct 64-bit division.
Index: div64.h
===================================================================
RCS file: /cvsroot/xtensa/linux/include/asm-xtensa/div64.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** div64.h 15 Feb 2003 02:02:40 -0000 1.2
--- div64.h 12 Mar 2003 00:36:31 -0000 1.3
***************
*** 13,19 ****
#define do_div(n,base) ({ \
! int __res; \
! __res = ((unsigned long) n) % (unsigned) base; \
! n = ((unsigned long) n) / (unsigned) base; \
__res; })
--- 13,18 ----
#define do_div(n,base) ({ \
! int __res = n % ((unsigned int) base); \
! n /= (unsigned int) base; \
__res; })
|