|
Message-ID: <20141208145604.GC4574@brightrain.aerifal.cx> Date: Mon, 8 Dec 2014 09:56:04 -0500 From: Rich Felker <dalias@...c.org> To: musl@...ts.openwall.com Subject: Re: pthread_equal On Mon, Dec 08, 2014 at 03:42:25PM +0100, Jörg Krause wrote: > Why does musl declares pthread_equal both as macro and as function? C and POSIX allow any of their standard functions to be provided as macros too, but the function definition must always be provided. The reason I put the macro in musl is simply that it's easy to do and gives better code (trivial inline comparison rather than spilling all registers and making a function call) and it's not something where the implementation could change or need to change. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.