[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-commits
Subject:    Re: [cfe-commits] r61444 - /cfe/trunk/lib/Headers/float.h
From:       Chris Lattner <clattner () apple ! com>
Date:       2008-12-27 1:37:18
Message-ID: 44A8A802-25AA-4B49-8B9A-92211DEC5C76 () apple ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Dec 26, 2008, at 3:00 PM, Eli Friedman wrote:
> On Fri, Dec 26, 2008 at 2:48 PM, Anders Carlsson <andersca@mac.com>  
> wrote:
>>>
>>> There's not much to say... I think we were planning at one point  
>>> to do
>>> this a bit differently so that we didn't have to define so many
>>> identifiers on initialization, but this works.
>>>
>>
>> Oh, how?
>
> Roughly, define a new function, __builtin_limit(), or something like
> that, which the preprocessor expands, that allows queries for these
> sorts of things.  That way, we can get rid of the mess of
> DefineBuiltinMacro calls in Preprocessor.cpp.  I suppose it's not a
> particularly high priority, though.

Yep, something like __builtin_numeric_property("whatever") could be  
used.  This reduces load on the identifier table, and could be  
extensible to other related things.  I agree that this isn't a super  
high priority though :)

-Chris
[Attachment #5 (text/html)]

<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space; "><div><div>On Dec 26, 2008, at 3:00 PM, Eli \
Friedman wrote:</div><blockquote type="cite"><div>On Fri, Dec 26, 2008 at 2:48 PM, \
Anders Carlsson &lt;<a href="mailto:andersca@mac.com">andersca@mac.com</a>> \
wrote:<br><blockquote type="cite"><blockquote type="cite"><font \
class="Apple-style-span" color="#006312"><span class="Apple-style-span" \
style="-webkit-text-stroke-width: -1;"><br></span></font>There's not much to say... I \
think we were planning at one point to do<br></blockquote></blockquote><blockquote \
type="cite"><blockquote type="cite">this a bit differently so that we didn't have to \
define so many<br></blockquote></blockquote><blockquote type="cite"><blockquote \
type="cite">identifiers on initialization, but this \
works.<br></blockquote></blockquote><blockquote type="cite"><blockquote \
type="cite"><br></blockquote></blockquote><blockquote \
type="cite"><br></blockquote><blockquote type="cite">Oh, \
how?<br></blockquote><br>Roughly, define a new function, __builtin_limit(), or \
something like<br>that, which the preprocessor expands, that allows queries for \
these<br>sorts of things. &nbsp;That way, we can get rid of the mess \
of<br>DefineBuiltinMacro calls in Preprocessor.cpp. &nbsp;I suppose it's not \
a<br>particularly high priority, though.<br></div></blockquote></div><br><div>Yep, \
something like __builtin_numeric_property("whatever") could be used. &nbsp;This \
reduces load on the identifier table, and could be extensible to other related \
things. &nbsp;I agree that this isn't a super high priority though \
:)</div><div><br></div><div>-Chris</div></body></html>



_______________________________________________
cfe-commits mailing list
cfe-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic