• 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: David Fang <email@hidden>
  • Date: Fri, 19 Aug 2005 21:07:21 -0400 (EDT)

> >>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):

Yes, that's better.  :)

> #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)

Agreed, this is *even* better if you're a portability nut like me.  :D

Cheers,

David Fang

 _______________________________________________
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: long long issue (From: Lawrence Gold <email@hidden>)

  • Prev by Date: Re: long long issue
  • Next by Date: Re: Resorcerer => Icon Composer
  • Previous by thread: Re: long long issue
  • Next by thread: Re: long long issue
  • Index(es):
    • Date
    • Thread