Re: long long issue
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