Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Aug 2000 00:23:28 +0400 (MSD)
From:      .@babolo.ru
To:        "Mike Smith" <msmith@FreeBSD.ORG>
Cc:        "Daniel C. Sobral" <dcs@newsguy.com>, chris@calldei.com, freebsd-hackers@FreeBSD.ORG
Subject:   Re: malloc to arrays?
Message-ID:  <200008022023.AAA00804@cicuta.babolo.ru>
In-Reply-To: <200008021937.MAA01443@mass.osd.bsdi.com> from "Mike Smith" at "Aug 2, 2000 12:37:14 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> > It's only "clear" insofar as it's "clear" that the code is terrible.
Sorry I know English bad, do you want to say that my code is terrible?

> Coffee first, critique second. 8)
> 
> > #define TCPCASH_ROWSIZE	256
> > #define TCPCASH_COLSIZE	256
> > #define TCPCASH_ADDR(x)	((x) * TCPCASH_ROWSIZE)
> 
> #define TCPCASH_ADDR(x,y)	((y) * TCPCASH_ROWSIZE + (x))
Yes I know that I will use tcpcashe_addr(x,y) instead of [x][y],
(thank for cash -> cashe) with some macro declarations,
but it is something artificial for array of array representation:

[0,0][0,1]...[0,255][1,0][1,1]...[1,255]...

with statically unknown first index range.

-- 
Александр А. Бабайлов                  mailto://babolo@links.ru/
                                           http://links.ru/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008022023.AAA00804>