Added a do_div() wrapper macro, lldiv().
PATCH 1/1 Added a do_div() wrapper macro, lldiv().
PATCH 1/1 Added a do_div() wrapper macro, lldiv().
Dear Sergei,
Quoted 4 lines · In message <[email protected]> you wrote:
Subject: [PATCH] Added a
do_div()wrapper macro,lldiv().
The new macro 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))"
Instead of a macro, please make this an inline function (which is better as it allows for examply more strict type checking by the compiler).
Thanks.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de e-credibility: the non-guaranteeable likelihood that the electronic data you're seeing is genuine rather than somebody's made-up crap. - Karl Lehenbauer