From: Wolfgang Denk Date: Sat, 24 Jan 2009 00:23:57 +0100 Subject: [U-Boot] [PATCH] Added a do_div() wrapper macro, lldiv(). In-Reply-To: <20081104125118.20E907023AB@pollux.denx.de> References: <20081104125118.20E907023AB@pollux.denx.de> Message-ID: <20090123232357.F165F832E425@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Sergei Poselenov, In message <20081104125118.20E907023AB@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 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