Searched refs:bits (Results 1 - 5 of 5) sorted by relevance

/systemd/src/libudev/
H A Dlibudev-util.c257 /* get a bunch of bit numbers out of the hash, and set the bits in our bit field */
260 uint64_t bits = 0; local
263 bits |= 1LLU << (hash & 63);
264 bits |= 1LLU << ((hash >> 6) & 63);
265 bits |= 1LLU << ((hash >> 12) & 63);
266 bits |= 1LLU << ((hash >> 18) & 63);
267 return bits;
/systemd/src/basic/
H A Dcapability-util.c323 cap_value_t bits[u64log2(keep_capabilities) + 1]; local
325 for (i = 0; i < ELEMENTSOF(bits); i++)
327 bits[j++] = i;
329 /* use enough bits */
331 /* don't use too many bits */
334 if (cap_set_flag(d, CAP_EFFECTIVE, j, bits, CAP_SET) < 0 ||
335 cap_set_flag(d, CAP_PERMITTED, j, bits, CAP_SET) < 0)
336 return log_error_errno(errno, "Failed to enable capabilities bits: %m");
H A Dhostname-util.c20 #include <bits/local_lim.h>
/systemd/src/journal/
H A Dfsprg.c123 /* deterministically generate from seed/idx a prime of length `bits' that is 3 (mod 4) */
124 static gcry_mpi_t genprime3mod4(int bits, const void *seed, size_t seedlen, uint32_t idx) { argument
125 size_t buflen = bits / 8;
129 assert(bits % 8 == 0);
133 buf[0] |= 0xc0; /* set upper two bits, so that n=pq has maximum size */
134 buf[buflen - 1] |= 0x03; /* set lower two bits, to have result 3 (mod 4) */
165 /* count number of used bits in m */
/systemd/src/core/
H A Dexecute.c771 static const cap_value_t bits[] = { local
780 if (cap_set_flag(d, CAP_EFFECTIVE, ELEMENTSOF(bits), bits, CAP_SET) < 0 ||
781 cap_set_flag(d, CAP_PERMITTED, ELEMENTSOF(bits), bits, CAP_SET) < 0)

Completed in 1328 milliseconds