Home
last modified time | relevance | path

Searched refs:BITS_PER_WORD (Results 1 – 15 of 15) sorted by relevance

/external/arm-trusted-firmware/services/std_svc/trng/
Dtrng_entropy_pool.c30 #define BITS_PER_WORD (sizeof(entropy[0]) * 8) macro
31 #define BITS_IN_POOL (WORDS_IN_POOL * BITS_PER_WORD)
32 #define ENTROPY_MIN_WORD (entropy_bit_index / BITS_PER_WORD)
34 #define _ENTROPY_FREE_WORD (ENTROPY_FREE_BIT / BITS_PER_WORD)
51 entropy_bit_size += BITS_PER_WORD; in trng_fill_entropy()
77 const unsigned int rshift = entropy_bit_index % BITS_PER_WORD; in trng_pack_entropy()
78 const unsigned int lshift = BITS_PER_WORD - rshift; in trng_pack_entropy()
79 const int to_fill = ((nbits + BITS_PER_WORD - 1) / BITS_PER_WORD); in trng_pack_entropy()
124 if (lshift != BITS_PER_WORD) { in trng_pack_entropy()
129 const uint64_t mask = ~0ULL >> (BITS_PER_WORD - (nbits % BITS_PER_WORD)); in trng_pack_entropy()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/
Dtileset.h60 size_t num_words = (m_maxSet + BITS_OFFSET) / BITS_PER_WORD; in clear()
67 static const size_t BITS_PER_WORD = sizeof(size_t) * 8;
68 static const size_t BITS_OFFSET = BITS_PER_WORD - 1;
74 INLINE size_t& _get_word(size_t idx) { return m_bits[idx / BITS_PER_WORD]; } in _get_word()
84 size_t num_words = new_size / BITS_PER_WORD; in _grow()
90 copy_words = (m_size + BITS_OFFSET) / BITS_PER_WORD; in _grow()
Dutils.h250 static const size_t BITS_PER_WORD = sizeof(size_t) * 8;
251 static const size_t ELEMENTS_PER_WORD = BITS_PER_WORD / BitsPerElementT;
255 static_assert(ELEMENTS_PER_WORD * BitsPerElementT == BITS_PER_WORD,
/external/cronet/third_party/boringssl/src/crypto/hrss/
Dinternal.h27 #define BITS_PER_WORD (sizeof(crypto_word_t) * 8) macro
28 #define WORDS_PER_POLY ((N + BITS_PER_WORD - 1) / BITS_PER_WORD)
29 #define BITS_IN_LAST_WORD (N % BITS_PER_WORD)
Dhrss.c365 static const size_t shift = BITS_PER_WORD - ((N-1) % BITS_PER_WORD); in poly2_reverse_700()
368 out->v[i] |= t.v[WORDS_PER_POLY-2-i] << (BITS_PER_WORD - shift); in poly2_reverse_700()
395 const crypto_word_t next_carry = p->v[i] >> (BITS_PER_WORD - 1); in poly2_lshift1()
408 p->v[i] |= carry << (BITS_PER_WORD - 1); in poly2_rshift1()
628 for (size_t i = 0; i < BITS_PER_WORD; i++) { in poly3_mul_aux()
645 const crypto_word_t m_s_high = m_s >> (BITS_PER_WORD - i); in poly3_mul_aux()
647 const crypto_word_t m_a_high = m_a >> (BITS_PER_WORD - i); in poly3_mul_aux()
728 v_s |= prod_s[WORDS_PER_POLY + i] << (BITS_PER_WORD - BITS_IN_LAST_WORD); in HRSS_poly3_mul()
730 v_a |= prod_a[WORDS_PER_POLY + i] << (BITS_PER_WORD - BITS_IN_LAST_WORD); in HRSS_poly3_mul()
861 f.a.v[WORDS_PER_POLY - 1] >>= BITS_PER_WORD - BITS_IN_LAST_WORD; in HRSS_poly3_invert()
[all …]
Dhrss_test.cc57 r.a.v[i / BITS_PER_WORD] = (UINT64_C(1) << (i % BITS_PER_WORD)); in TEST()
/external/boringssl/src/crypto/hrss/
Dinternal.h27 #define BITS_PER_WORD (sizeof(crypto_word_t) * 8) macro
28 #define WORDS_PER_POLY ((N + BITS_PER_WORD - 1) / BITS_PER_WORD)
29 #define BITS_IN_LAST_WORD (N % BITS_PER_WORD)
Dhrss.c365 static const size_t shift = BITS_PER_WORD - ((N-1) % BITS_PER_WORD); in poly2_reverse_700()
368 out->v[i] |= t.v[WORDS_PER_POLY-2-i] << (BITS_PER_WORD - shift); in poly2_reverse_700()
395 const crypto_word_t next_carry = p->v[i] >> (BITS_PER_WORD - 1); in poly2_lshift1()
408 p->v[i] |= carry << (BITS_PER_WORD - 1); in poly2_rshift1()
628 for (size_t i = 0; i < BITS_PER_WORD; i++) { in poly3_mul_aux()
645 const crypto_word_t m_s_high = m_s >> (BITS_PER_WORD - i); in poly3_mul_aux()
647 const crypto_word_t m_a_high = m_a >> (BITS_PER_WORD - i); in poly3_mul_aux()
728 v_s |= prod_s[WORDS_PER_POLY + i] << (BITS_PER_WORD - BITS_IN_LAST_WORD); in HRSS_poly3_mul()
730 v_a |= prod_a[WORDS_PER_POLY + i] << (BITS_PER_WORD - BITS_IN_LAST_WORD); in HRSS_poly3_mul()
861 f.a.v[WORDS_PER_POLY - 1] >>= BITS_PER_WORD - BITS_IN_LAST_WORD; in HRSS_poly3_invert()
[all …]
Dhrss_test.cc57 r.a.v[i / BITS_PER_WORD] = (UINT64_C(1) << (i % BITS_PER_WORD)); in TEST()
/external/rust/crates/quiche/deps/boringssl/src/crypto/hrss/
Dinternal.h27 #define BITS_PER_WORD (sizeof(crypto_word_t) * 8) macro
28 #define WORDS_PER_POLY ((N + BITS_PER_WORD - 1) / BITS_PER_WORD)
29 #define BITS_IN_LAST_WORD (N % BITS_PER_WORD)
Dhrss.c368 static const size_t shift = BITS_PER_WORD - ((N-1) % BITS_PER_WORD); in poly2_reverse_700()
371 out->v[i] |= t.v[WORDS_PER_POLY-2-i] << (BITS_PER_WORD - shift); in poly2_reverse_700()
398 const crypto_word_t next_carry = p->v[i] >> (BITS_PER_WORD - 1); in poly2_lshift1()
411 p->v[i] |= carry << (BITS_PER_WORD - 1); in poly2_rshift1()
631 for (size_t i = 0; i < BITS_PER_WORD; i++) { in poly3_mul_aux()
648 const crypto_word_t m_s_high = m_s >> (BITS_PER_WORD - i); in poly3_mul_aux()
650 const crypto_word_t m_a_high = m_a >> (BITS_PER_WORD - i); in poly3_mul_aux()
731 v_s |= prod_s[WORDS_PER_POLY + i] << (BITS_PER_WORD - BITS_IN_LAST_WORD); in HRSS_poly3_mul()
733 v_a |= prod_a[WORDS_PER_POLY + i] << (BITS_PER_WORD - BITS_IN_LAST_WORD); in HRSS_poly3_mul()
864 f.a.v[WORDS_PER_POLY - 1] >>= BITS_PER_WORD - BITS_IN_LAST_WORD; in HRSS_poly3_invert()
[all …]
Dhrss_test.cc57 r.a.v[i / BITS_PER_WORD] = (UINT64_C(1) << (i % BITS_PER_WORD)); in TEST()
/external/autotest/client/bin/input/
Dlinux_input.py1115 BITS_PER_WORD = 8 variable
1118 return ((x - 1) // BITS_PER_WORD) + 1
1121 return (x % BITS_PER_WORD)
1127 return (x // BITS_PER_WORD)
/external/libpcap/
Doptimize.c275 #define BITS_PER_WORD (8*sizeof(bpf_u_int32)) macro
280 ((p)[(unsigned)(a) / BITS_PER_WORD] & ((bpf_u_int32)1 << ((unsigned)(a) % BITS_PER_WORD)))
286 (p)[(unsigned)(a) / BITS_PER_WORD] |= ((bpf_u_int32)1 << ((unsigned)(a) % BITS_PER_WORD))
292 (p)[(unsigned)(a) / BITS_PER_WORD] &= ~((bpf_u_int32)1 << ((unsigned)(a) % BITS_PER_WORD))
1760 k += i * BITS_PER_WORD; in opt_j()
2566 opt_state->edgewords = opt_state->n_edges / BITS_PER_WORD + 1; in opt_init()
2567 opt_state->nodewords = opt_state->n_blocks / BITS_PER_WORD + 1; in opt_init()
/external/swiftshader/third_party/subzero/src/
DPNaClTranslator.cpp186 assert(Bits <= BITS_PER_WORD && "bitwidth too big"); in BitcodeInt()
191 return static_cast<int64_t>(Val << (BITS_PER_WORD - BitWidth)) >> in getSExtValue()
192 (BITS_PER_WORD - BitWidth); in getSExtValue()
206 static const Ice::SizeT BITS_PER_WORD = sizeof(uint64_t) * CHAR_BIT; member in __anon23a5119b0111::BitcodeInt
214 if (BitWidth == BITS_PER_WORD) in clearUnusedBits()
218 Val &= ~static_cast<uint64_t>(0) >> (BITS_PER_WORD - BitWidth); in clearUnusedBits()