]> git.neil.brown.name Git - history.git/commit
[PATCH] Fix problem introduced by do_div() patch
authorBernardo Innocenti <bernie@develer.com>
Tue, 8 Jul 2003 09:19:51 +0000 (02:19 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Tue, 8 Jul 2003 09:19:51 +0000 (02:19 -0700)
commit196652520859d6f3416790c2f81ce8f5c1262602
tree34ae202e7fe9a70244a721f8a253548c4e0a7317
parent6761d0952f2cccefb9e9a891cbbc901693054e9b
[PATCH] Fix problem introduced by do_div() patch

 - export the __div64_32 symbol for modules;

 - add likely() to the fast path (divisor>>32 == 0);

 - add __attribute__((pure)) to __div64_32() prototype so
   the compiler knows global memory isn't clobbered;

 - avoid building __div64_32() on 64bit architectures.
include/asm-generic/div64.h
include/linux/compiler.h
lib/div64.c