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

Wolfgang Denk wd at denx.de
Fri May 11 22:13:07 CEST 2012


Dear Simon Glass,

In message <CAPnjgZ2hep7ApaNMakKrAEpCPffQ74BogGo=GnWTy47akewXTQ at mail.gmail.com> you wrote:
>
> So I will go back to the more complicated way, and this time just copy what
> the kernel does. The difference is that it doesn't use typeof().

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?

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
Reader, suppose you were an idiot. And suppose you were a  member  of
Congress. But I repeat myself.                           - Mark Twain


More information about the U-Boot mailing list