X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=src%2Fint%2Fprocaddr.c;h=00d0084be29d7beb8de209e8bf0fdc359e7896af;hb=HEAD;hp=4977c69bfb72ca5984459cff9e10a1b0429d2623;hpb=1c8065c10f89994573ea0f3faee55575360b1cd5;p=vlp.git diff --git a/src/int/procaddr.c b/src/int/procaddr.c index 4977c69..00d0084 100644 --- a/src/int/procaddr.c +++ b/src/int/procaddr.c @@ -11,15 +11,16 @@ #define staddr(node, pix) ((word) ((pix << 8) | node)) -/* - These are converters from global to process pointers in memory - to global process pointers in message. - M denotes memory in which pair (pointer,object) exists or has to exist. - We want to create object denoting remote process instead of - dummy pointer without object. - The object will be like an arrayof integer of size 2. - arr[1..3] : arr[1]=node, arr[2]=pix. -*/ +/** + * @file + * These are converters from global to process pointers in memory + * to global process pointers in message. + * M denotes memory in which pair (pointer,object) exists or has to exist. + * We want to create object denoting remote process instead of + * dummy pointer without object. + * The object will be like an arrayof integer of size 2. + * arr[1..3] : arr[1]=node, arr[2]=pix. + */ void obj2mess(word *M, virtaddr *obj, procaddr *mess) { @@ -205,7 +206,7 @@ static int hash_mess(procaddr *mess) { return hash % (thisp->hash_size); } -static int hash_2( hash_1 ) hash_1;{ +static int hash_2(int hash_1 ) { return thisp->hash_size -2 - (hash_1 % (thisp->hash_size - 2)); }