
1 Nov
2008
1 Nov
'08
3:40 p.m.
Dear Sergei,
In message 200811011404.mA1E4J91008389@wooster.emcraft.com 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
--
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@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