• 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: long long issue
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: long long issue


  • Subject: Re: long long issue
  • From: Lawrence Gold <email@hidden>
  • Date: Fri, 19 Aug 2005 18:50:05 -0600

David Fang wrote:
Hi,

Append "LL" to your constant:

0xFF00FF00FF00FF00LL


What must I do to be able to assign 0xff00ff00ff00ff00 to value1?

Or better (?) still: Append ULL to it, since it's unsigned. And if you need to support other compilers that don't use LL and ULL, you can use macros (as found in MAME):


#ifdef __GNUC__
#define U64(val) val##ULL
#define S64(val) val##LL
#else
#define U64(val) val
#define S64(val) val
#endif

and then use it like so:

U64(0xFF00FF00FF00FF00)
_______________________________________________
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


  • Follow-Ups:
    • Re: long long issue
      • From: David Fang <email@hidden>
References: 
 >Re: long long issue (From: David Fang <email@hidden>)

  • Prev by Date: Re: Alternative GDB for Xcode
  • Next by Date: Re: long long issue
  • Previous by thread: Re: long long issue
  • Next by thread: Re: long long issue
  • Index(es):
    • Date
    • Thread