Subject: Re: CVS commit: syssrc/sys/arch/powerpc/powerpc
To: Chris Hopps <chopps@allegronetworks.com>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 11/03/2002 19:23:21
Chris Hopps wrote:
> The mask is efficient in time perhaps, but certainly not in space given all
> the error entries that just got added.
>
> Is the 1 compare vs. 1 mask really a big deal? Is this mask operation the
> only reason the tables need to be power of two big?

Yes. It saves couple instructions on every system call. Definitely
worth those maximum 256*sizeof(void *) of space. The tables have
to be really p-o-2 big, so that the result pointer is valid pointer
to valid syscall entry.

Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-