Searched refs:addresses (Results 1 - 2 of 2) sorted by relevance
/ast/src/cmd/dsslib/ip_t/ |
H A D | ptstats.c | 40 Ptcount_t addresses[PTBITS+1]; local 47 for (i = 0; i < elementsof(addresses); i++) 48 addresses[i] = prefixes[i] = 0; 54 addresses[b]++; 57 addresses[b] += m; 67 tc = (int)((double)(sizeof(tot) - (sizeof(S) - 10)) * ((double)((intmax_t)addresses[i]) / (double)((Ptaddr_t)~0))); 68 pc = total_addresses ? ((int)((double)(sizeof(prt) - (sizeof(S) - 10)) * ((double)((intmax_t)addresses[i]) / (double)((intmax_t)total_addresses))) - tc) : 0; 69 sfprintf(sp, "/%-2d %6I*u %*I*u %s%s\n", i, sizeof(prefixes[i]), prefixes[i], sizeof(S) - 1, sizeof(addresses[i]), addresses[i], prt + sizeof(prt) - pc - 1, tot + sizeof(tot) - tc - 1);
|
H A D | ptvstats.c | 42 unsigned char** addresses; local 49 if (!(addresses = (unsigned char**)newof(0, unsigned char, (2 * (bits + 1)) * (sizeof(unsigned char*) + a->size), 0))) 55 prefixes = addresses + bits + 1; 61 addresses[i] = v; 71 fvadd(a->size, addresses[b], addresses[b], a->r[1]); 74 fvadd(a->size, addresses[b], addresses[b], a->r[3]); 87 if (fvcmp(a->size, addresses[i], a->r[1]) >= 0) 89 fvdiv(a->size, a->r[3], a->r[5], a->r[0], addresses[ [all...] |
Completed in 10 milliseconds