stdint.h, Tiger, etc
stdint.h, Tiger, etc
- Subject: stdint.h, Tiger, etc
- From: Markian Hlynka <email@hidden>
- Date: Wed, 6 Apr 2005 10:50:30 -0600
This is a piece from a conversation that started here and moved off-line... I thought maybe the list at large might have something to say on it the matter...
Where/how can I get information on things like stdint.h? Does it include things like standard 64 bit ints that would be portable into Tiger? I'm a little concerned, because occasionally in my code I need to use things like exactly a 16 bit or 64 bit int. My solutions have been a little haphazard so far...
Can anyone tell me (legally) about how Tiger will react with some of these things? ie, I currently do this in my code in a "myutil.h" header file:
typedef long long int int64T;
I do this to generate a 64-bit int. I use my own type so that I can change it if necessary in a single place. (I should have done that with 16-bit ints too)
So, in Tiger, will long long be 64, or maybe 128? Will the base types change size?
How about calls like random()? I currently generate 64 bit random numbers something like this:
int64T foo;
int* bluff
srandom(0);
bluff=(int*)(&foo);
bluff[0]=random();
bluff[1]=random();
Is this going to be totally screwed up when I start compiling in Tiger?
Thanks,
Markian
_______________________________________________
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