Re: Kernel Data Alignment
Re: Kernel Data Alignment
- Subject: Re: Kernel Data Alignment
- From: Markus Hitter <email@hidden>
- Date: Thu, 10 Jul 2003 09:56:04 +0200
Am Donnerstag, 10.07.03 um 01:43 Uhr schrieb David Chatterton:
Most Darwin structure appear not to use 64bit values,
size_t is 32bits for example.
How about padding with dummy variables?
For sizeof(size_t) == 4:
typedef struct {
size_t mysize;
char dummy[4];
} ...
For sizeof(size_t) == 8:
typedef struct {
size_t mysize;
} ...
Maybe you even can automate this with preprocessor directives.
HTH,
Markus
- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.