[U-Boot] [PATCH v7 03/23] Add abs() macro to return absolute value

Simon Glass sjg at chromium.org
Sat May 12 00:31:52 CEST 2012


Hi,

On Fri, May 11, 2012 at 2:24 PM, Wolfgang Denk <wd at denx.de> wrote:

> Dear Simon Glass,
>
> In message <CAPnjgZ1jSrcdNVgN5aMG+z-94-vpH2ym3B=
> D6pJ6Bxib7oek2A at mail.gmail.com> you wrote:
> >
> > > I have to admit that I tend to prefer the typeof() version, and I
> > > wonder why the kernel doesn;t use that.  I guess there are reasons for
> > > that.  Does anybody know what these might be?
> > >
> >
> > Not me, but:
>
> Thanks.  So there is indeed a problem with the "obvious"
> implementation :-(
>

Yes, there are always problems, normally solved by additional complexity
and lines of code. I will do a patch with the kernel version as I
mentioned, as perhaps we can go with that.

Regards,
Simon


>
> 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
> Madness takes its toll. Please have exact change.
>


More information about the U-Boot mailing list