[U-Boot] [PATCH] Added a do_div() wrapper macro, lldiv().

Wolfgang Denk wd at denx.de
Sat Jan 24 00:23:57 CET 2009


Dear Sergei Poselenov,

In message <20081104125118.20E907023AB at pollux.denx.de> you wrote:
> Hello all,
> Modified the previous version, as suggested by Wolfgang.
> 
> Regards,
> Sergei
> 
> Description:
> 
> Added 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 at emcraft.com>

Applied, 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 at denx.de
The games have always  strengthened  us.  Death  becomes  a  familiar
pattern. We don't fear it as you do.
	-- Proconsul Marcus Claudius, "Bread and Circuses",
	   stardate 4041.2


More information about the U-Boot mailing list