infra: add CYG_ARRAY_SIZE() macro
David Vrabel
dvrabel@arcom.com
Wed May 17 16:37:00 GMT 2006
Andrew Lunn wrote:
> On Wed, May 17, 2006 at 05:13:47PM +0100, David Vrabel wrote:
>> I've had to use something like this quite a bit so I guess it's useful
>> enough to include. It does the same thing as Linux's ARRAY_SIZE macro.
>
> I've always called this NELEM.
That would be a more descriptive name. Have another patch so you can
choose which (if any) to apply.
> Is this defined in any standard anywhere?
I don't think so.
David Vrabel
--
David Vrabel, Design Engineer
Arcom, Clifton Road Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK Web: http://www.arcom.com/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: infra-add-CYG_NELEM
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20060517/96441bc3/attachment.ksh>
More information about the Ecos-patches
mailing list