Searched refs:sum (Results 1 - 11 of 11) sorted by relevance
/systemd/src/libsystemd-network/ |
H A D | dhcp-packet.c | 59 uint64_t sum = 0; local 64 sum += *buf_64; 65 if (sum < *buf_64) 67 sum++; 79 sum += buf_tail; 80 if (sum < buf_tail) 82 sum++; 85 while (sum >> 16) 86 sum = (sum [all...] |
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-gvariant.c | 26 int sum = 0, r; local 47 sum = ALIGN_TO(sum, r); 54 sum += 1; 59 sum += 2; 65 sum += 4; 71 sum += 8; 90 sum += r; 112 return ALIGN_TO(sum, r);
|
H A D | bus-socket.c | 830 uint64_t sum; local 871 sum = (uint64_t) sizeof(struct bus_header) + (uint64_t) ALIGN_TO(b, 8) + (uint64_t) a; 872 if (sum >= BUS_MESSAGE_SIZE_MAX) 875 *need = (size_t) sum;
|
/systemd/tools/ |
H A D | gdb-sd_dump_hashmaps.py | 67 print "mean DIB of entries: %f" % (sum([dib*histogram[dib] for dib in iter(histogram) if dib != 255])*1.0/n_entries) 89 print "sum block lens: %d" % sum(b[1] for b in blocks) 90 print "mean block len: %f" % (1.0 * sum(b[1] for b in blocks) / len(blocks))
|
/systemd/src/coredump/ |
H A D | coredump-vacuum.c | 87 static bool vacuum_necessary(int fd, uint64_t sum, uint64_t keep_free, uint64_t max_use) { argument 113 if (max_use > 0 && sum > max_use) 165 uint64_t sum = 0; local 244 sum += st.st_blocks * 512; 250 r = vacuum_necessary(dirfd(d), sum, keep_free, max_use);
|
/systemd/src/journal/ |
H A D | journal-vacuum.c | 157 uint64_t sum = 0, freed = 0; local 308 sum += size; 319 (max_use <= 0 || sum <= max_use) && 327 if (list[i].usage < sum) 328 sum -= list[i].usage; 330 sum = 0;
|
H A D | journald-server.c | 98 uint64_t sum = 0, ss_avail, avail; local 145 sum += (uint64_t) st.st_blocks * 512UL; 156 metrics->min_use = MAX(metrics->min_use, sum); 161 s->cached_space_limit = MIN(MAX(sum + avail, metrics->min_use), metrics->max_use); 162 s->cached_space_available = LESS_BY(s->cached_space_limit, sum); 168 format_bytes(fb1, sizeof(fb1), sum); 180 "CURRENT_USE=%"PRIu64, sum,
|
H A D | sd-journal.c | 2387 uint64_t sum = 0; local 2399 sum += (uint64_t) st.st_blocks * 512ULL; 2402 *bytes = sum;
|
/systemd/src/core/ |
H A D | manager.c | 2617 char userspace[FORMAT_TIMESPAN_MAX], initrd[FORMAT_TIMESPAN_MAX], kernel[FORMAT_TIMESPAN_MAX], sum[FORMAT_TIMESPAN_MAX]; local 2649 format_timespan(sum, sizeof(sum), total_usec, USEC_PER_MSEC)), 2662 format_timespan(sum, sizeof(sum), total_usec, USEC_PER_MSEC)), 2673 format_timespan(sum, sizeof(sum), total_usec, USEC_PER_MSEC)), 2682 format_timespan(sum, sizeof(sum), total_usec, USEC_PER_MSEC));
|
H A D | load-fragment.c | 1049 uint64_t sum = 0, initial = 0; local 1088 sum |= ((uint64_t) UINT64_C(1)) << (uint64_t) cap; 1091 sum = invert ? ~sum : sum; 1093 if (sum == 0 || *capability_set == initial) 1095 *capability_set = sum; 1098 *capability_set |= sum;
|
/systemd/src/resolve/ |
H A D | resolved-dns-dnssec.c | 53 uint32_t sum, f; local 66 sum = f + ((((uint32_t) dnskey->dnskey.protocol) << 8) + (uint32_t) dnskey->dnskey.algorithm); 71 sum += (i & 1) == 0 ? (uint32_t) p[i] << 8 : (uint32_t) p[i]; 73 sum += (sum >> 16) & UINT32_C(0xFFFF); 75 return sum & UINT32_C(0xFFFF);
|
Completed in 69 milliseconds