Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern



Joerg Sonnenberger wrote:
> That's still not necessarily optimal, depending on the padding rules of
> the platform. You want to do offsetof(s, m[0]) + n * sizeof((s*)NULL->m[0]).

Using m[0] inside offsetof is non-standard but I think this will work:

offsetof(s, m) + n * sizeof((s*)NULL->m[0]).

Alex


Home | Main Index | Thread Index | Old Index