[Mesa-dev] [PATCH 1/2] mesa: Detect and provide macros for function attributes pure and const.

Eric Anholt eric at anholt.net
Fri Jul 17 17:38:07 PDT 2015

Emil Velikov <emil.l.velikov at gmail.com> writes:

> On 14/07/15 19:45, Eric Anholt wrote:
>> These are really useful hints to the compiler in the absence of link-time
>> optimization, and I'm going to use them in VC4.
>> I've made the const attribute be ATTRIBUTE_CONST unlike other function
>> attributes, because we have other things in the tree #defining CONST for
>> their own unrelated purposes.
> Mindly related: how people feel about making these macros less screamy,
> by following the approach used in the kernel: PURE -> __pure and so on ?

I'd love it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150717/bcdfed26/attachment-0001.sig>

More information about the mesa-dev mailing list