[cfe-dev] Missing C99 function's __builtin_'s
eli.friedman at gmail.com
Tue Jan 17 14:16:26 PST 2012
On Mon, Jan 16, 2012 at 10:25 AM, Ruben Van Boxem
<vanboxem.ruben at gmail.com> wrote:
> 2012/1/16 Eli Friedman <eli.friedman at gmail.com>
>> On Mon, Jan 16, 2012 at 8:24 AM, Ruben Van Boxem
>> <vanboxem.ruben at gmail.com> wrote:
>> > Hi,
>> > Is there a specific reason why Clang does not have
>> > __builtin_labs
>> > __builtin_llabs
>> No, probably just nobody got around to adding them.
> I had an attempt at adding the __builtin's mentioned above. I tested with
> current trunk attached patch. It just adds the two builtin names and puts it
> in the same codegen part as regular abs. I hope this is correct, I had a
> quick check of llabs with -2^61 and printf using "%lld".
> PS: If patch is OK, please commit, I don't have commit rights.
More information about the cfe-dev