Rearrange endpoint number layout

The constants ANY, NONE, and SELF are now a function of the way the
endpoint number is split between a generation number and a process
slot number, rather than the other way around.  This allows for the
use of bit masking and shifting instead of the previous (and more
expensive) multiplication and division.

Change-Id: Id890eea74435444128c75eb0c89816b948f43c0b
This commit is contained in:
David van Moolenbroek
2014-02-25 14:24:52 +01:00
committed by Lionel Sambuc
parent 760f3d62d7
commit e7974541d0
4 changed files with 57 additions and 32 deletions

View File

@@ -23,7 +23,7 @@ void test39a()
subtest = 1;
for (g = 0; g <= _ENDPOINT_MAX_GENERATION; g++) {
for (p = -MAX_NR_TASKS; p < _NR_PROCS; p++) {
for (p = -MAX_NR_TASKS; p < MAX_NR_PROCS; p++) {
endpoint_t ept;
int mg, mp;
ept = _ENDPOINT(g, p);