]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
Add a do_div() wrapper macro, lldiv().
authorSergei Poselenov <sposelenov@emcraft.com>
Tue, 4 Nov 2008 12:51:18 +0000 (13:51 +0100)
committerWolfgang Denk <wd@denx.de>
Fri, 23 Jan 2009 23:23:09 +0000 (00:23 +0100)
commit3feb647f3fd0881382c7a29f4cf280b66473ae0a
tree98c94301b02b76944dd2191ab2f32efdc86da3a9
parent6dadc9195ad642cc662632f4d92f92d3d71e8bf2
Add a do_div() wrapper macro, lldiv().

Add a do_div() wrapper, lldiv(). The new inline function doesn't modify
the dividend and returns the result of division, so it is useful
in complex expressions, i.e. "return(a/b)" -> "return(lldiv(a,b))"

Signed-off-by: Sergei Poselenov <sposelenov@emcraft.com>
include/div64.h