• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: __builtin_constant_p fails for Intel compilation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: __builtin_constant_p fails for Intel compilation?


  • Subject: Re: __builtin_constant_p fails for Intel compilation?
  • From: Alexey Proskuryakov <email@hidden>
  • Date: Fri, 13 Jan 2006 12:09:24 +0300
  • Thread-topic: __builtin_constant_p fails for Intel compilation?

On 13.01.2006 11:35, "Eric Albert" <email@hidden> wrote:

>>   Done, rdar://4407750. I wonder what it does recognize as a constant
>> expression, if not even a zero :)
>
> The problem isn't that 0 is non-const, but rather than EndianU32_NtoB
> doesn't expand to a constant expression.

  Trying hard to see what else could have confused it... Ah!

int f(int x);

enum {
    kConst = 0 ? f(1) : 1
};

> Sorry; I got the name wrong.  It's OSSwapHostToBigConstInt32.  As with
> the other OSSwap* APIs, you can find it in <libkern/OSByteOrder.h>.

  Thank you, this works as advertized!

- WBR, Alexey Proskuryakov


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: __builtin_constant_p fails for Intel compilation? (From: Eric Albert <email@hidden>)

  • Prev by Date: Re: MacIntel apps behaves weirdly when compiled with -02 not -01
  • Next by Date: Re: MacIntel apps behaves weirdly when compiled with -02 not -01
  • Previous by thread: Re: __builtin_constant_p fails for Intel compilation?
  • Next by thread: Project design question
  • Index(es):
    • Date
    • Thread