[PATCH] powerpc: New feature - HWCAP/HWCAP2 bits in the TCB

Joseph Myers joseph@codesourcery.com
Tue Jun 9 15:42:00 GMT 2015


On Tue, 9 Jun 2015, Adhemerval Zanella wrote:

> 
> 
> On 09-06-2015 11:26, Joseph Myers wrote:
> > On Tue, 9 Jun 2015, Adhemerval Zanella wrote:
> > 
> >> There is no need to use underline names inside inline functions.  I would also
> > 
> > Yes there is, when in installed headers - installed headers should only 
> > take a non-reserved name from the namespace of macros the user might 
> > define before including the header if that name is actually intended to be 
> > part of the API for that header.
> > 
> 
> Does this also apply for the the variable defined inside the function?

Yes.  Users should be able to define macros called "tp" or "tcb_hwcap" 
before including the header, without those macros having any effect on the 
header, unless those names are documented interfaces.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list