Home
last modified time | relevance | path

Searched refs:CHAR_BIT (Results 1 - 25 of 136) sorted by relevance

123456

/third_party/openssl/ohos_lite/include/internal/
H A Dnumbers.h18 # define __MAXINT__(T) ((T) ((((T) 1) << ((sizeof(T) * CHAR_BIT) - 1)) ^ __MAXUINT__(T)))
24 # define __MAXINT__(T) ((T) ((((T) 1) << ((sizeof(T) * CHAR_BIT) - 1)) ^ __MAXUINT__(T)))
29 # define __MAXINT__(T) ((T) (((((T) 1) << ((sizeof(T) * CHAR_BIT) - 2)) - 1) | (((T) 1) << ((sizeof(T) * CHAR_BIT) - 2))))
30 # define __MAXUINT__(T) ((T) (__MAXINT__(T) | (((T) 1) << ((sizeof(T) * CHAR_BIT) - 1))))
/third_party/node/deps/openssl/openssl/include/internal/
H A Dnumbers.h19 # define __MAXINT__(T) ((T) ((((T) 1) << ((sizeof(T) * CHAR_BIT) - 1)) ^ __MAXUINT__(T)))
25 # define __MAXINT__(T) ((T) ((((T) 1) << ((sizeof(T) * CHAR_BIT) - 1)) ^ __MAXUINT__(T)))
30 # define __MAXINT__(T) ((T) (((((T) 1) << ((sizeof(T) * CHAR_BIT) - 2)) - 1) | (((T) 1) << ((sizeof(T) * CHAR_BIT) - 2))))
31 # define __MAXUINT__(T) ((T) (__MAXINT__(T) | (((T) 1) << ((sizeof(T) * CHAR_BIT) - 1))))
/third_party/openssl/include/internal/
H A Dnumbers.h19 # define __MAXINT__(T) ((T) ((((T) 1) << ((sizeof(T) * CHAR_BIT) - 1)) ^ __MAXUINT__(T)))
25 # define __MAXINT__(T) ((T) ((((T) 1) << ((sizeof(T) * CHAR_BIT) - 1)) ^ __MAXUINT__(T)))
30 # define __MAXINT__(T) ((T) (((((T) 1) << ((sizeof(T) * CHAR_BIT) - 2)) - 1) | (((T) 1) << ((sizeof(T) * CHAR_BIT) - 2))))
31 # define __MAXUINT__(T) ((T) (__MAXINT__(T) | (((T) 1) << ((sizeof(T) * CHAR_BIT) - 1))))
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/
H A DIceUtils.h41 (static_cast<unsigned int>(N) < (CHAR_BIT * sizeof(value)))); in IsInt()
48 (static_cast<unsigned int>(N) < (CHAR_BIT * sizeof(value)))); in IsUint()
57 (static_cast<unsigned int>(N) < (CHAR_BIT * sizeof(Value)))); in IsAbsoluteUint()
141 ((1 << (CHAR_BIT * sizeof(uint32_t) - __builtin_clz(Size))) - 1) - 1; in reserveAndResize()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/pnacl-llvm/include/llvm/Bitcode/NaCl/
H A DNaClBitstreamReader.h540 return NextChar * CHAR_BIT - BitsInCurWord; in GetCurrentBitNo()
545 return BitStream->getErrorOffset() * CHAR_BIT + Position; in getErrorBitNo()
614 return uintptr_t(BitNo / CHAR_BIT) & ~(sizeof(word_t) - 1); in getStartWordByteForBit()
619 return unsigned(BitNo & (sizeof(word_t) * CHAR_BIT - 1)); in getWordBitNo()
669 BitsInCurWord = BytesRead * CHAR_BIT; in fillCurWord()
673 static const unsigned BitsInWord = sizeof(word_t) * CHAR_BIT; in Read()
752 unsigned BitsToSkip = BitsInCurWord % CHAR_BIT; in SkipToByteBoundary()
801 size_t SkipTo = GetCurrentBitNo() + NumFourBytes * 4 * CHAR_BIT; in SkipBlock()
802 if (AtEndOfStream() || !canSkipToPos(SkipTo / CHAR_BIT)) in SkipBlock()
/third_party/optimized-routines/networking/aarch64/
H A Dchksum_simd.c28 uint64_t mask = ALL_ONES << (CHAR_BIT * off); in slurp_head64()
47 uint64_t mask = ALL_ONES >> (CHAR_BIT * (8 - nbytes)); in slurp_tail64()
48 Assert(__builtin_popcountl(mask) / CHAR_BIT == nbytes); in slurp_tail64()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
H A DPointerEmbeddedInt.h32 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT>
38 static_assert(Bits < sizeof(uintptr_t) * CHAR_BIT,
44 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits,
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/crosstest/
H A Dtest_arith_main.cpp21 #include <climits> // CHAR_BIT
119 << (CHAR_BIT * sizeof(TypeUnsigned)) << "(" << Value1 in testsInt()
155 << (CHAR_BIT * sizeof(TypeUnsigned)) << "(" << Value1 in testsInt()
216 Element2 &= CHAR_BIT * sizeof(ElementTypeUnsigned) - 1; in testsVecInt()
235 << (CHAR_BIT * sizeof(ElementTypeUnsigned)) << "(" in testsVecInt()
281 << (CHAR_BIT * sizeof(Type)) << "(" << Value1 << ", " in testsFp()
298 std::cout << std::fixed << "test_sqrt" << (CHAR_BIT * sizeof(Type)) << "(" in testsFp()
310 std::cout << std::fixed << "test_fabs" << (CHAR_BIT * sizeof(Type)) << "(" in testsFp()
H A Dtest_bitmanip_main.cpp112 std::cout << "test_" << Funcs[f].Name << (CHAR_BIT * sizeof(Type)) in testBitManip()
142 std::cout << "test_" << Funcs[f].Name << (CHAR_BIT * sizeof(Type)) in testByteSwap()
H A Dtest_icmp_main.cpp17 #include <climits> // CHAR_BIT
80 << (CHAR_BIT * sizeof(TypeUnsigned)) << "(" << Value1 in testsInt()
107 << (CHAR_BIT * sizeof(TypeUnsigned)) << "(" << Value1 in testsInt()
155 << (CHAR_BIT * sizeof(TypeUnsigned)) << "(" << Value in testsIntWithZero()
176 << (CHAR_BIT * sizeof(TypeUnsigned)) << "(" << Value in testsIntWithZero()
/third_party/node/deps/v8/include/v8-include/cppgc/internal/
H A Dcaged-heap.h36 static constexpr size_t kHalfWordShift = sizeof(uint32_t) * CHAR_BIT - 1; in AreWithinCage()
38 static constexpr size_t kHalfWordShift = sizeof(uint32_t) * CHAR_BIT; in AreWithinCage()
/third_party/node/deps/v8/src/heap/base/
H A Dactive-system-pages.cc34 DCHECK_LT(page_size_bits, sizeof(uintptr_t) * CHAR_BIT); in Add()
66 DCHECK_LT(page_size_bits, sizeof(uintptr_t) * CHAR_BIT); in Size()
/third_party/skia/src/utils/
H A DSkFloatUtils.h58 typedef typename SkTypeWithSize<sizeof(RawType) * CHAR_BIT>::UInt Bits;
61 static const size_t kBitCount = CHAR_BIT * sizeof(RawType);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
H A DMachineConstantPool.h86 Alignment |= 1U << (sizeof(unsigned) * CHAR_BIT - 1); in MachineConstantPoolEntry()
97 return Alignment & ~(1 << (sizeof(unsigned) * CHAR_BIT - 1)); in getAlignment()
/third_party/node/deps/cares/src/lib/
H A Dares__sortaddrinfo.c221 for (j = 0; j < CHAR_BIT; ++j) { in common_prefix_len()
222 if (x & (1 << (CHAR_BIT - 1))) { in common_prefix_len()
223 return i * CHAR_BIT + j; in common_prefix_len()
228 return sizeof(*a1) * CHAR_BIT; in common_prefix_len()
/third_party/icu/icu4c/source/tools/tzcode/
H A Dprivate.h82 #include "limits.h" /* for CHAR_BIT et al. */
313 #define TYPE_BIT(type) (sizeof (type) * CHAR_BIT)
323 ? (time_t) -1 << (CHAR_BIT * sizeof (time_t) - 1)
327 ? - (~ 0 < 0) - ((time_t) -1 << (CHAR_BIT * sizeof (time_t) - 1))
/third_party/skia/third_party/externals/icu/source/tools/tzcode/
H A Dprivate.h82 #include "limits.h" /* for CHAR_BIT et al. */
321 #define TYPE_BIT(type) (sizeof (type) * CHAR_BIT)
331 ? (time_t) -1 << (CHAR_BIT * sizeof (time_t) - 1)
335 ? - (~ 0 < 0) - ((time_t) -1 << (CHAR_BIT * sizeof (time_t) - 1))
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
H A Dregcomp.c541 # define BACKSL (1<<CHAR_BIT) in p_simp_re()
1078 p->ncsalloc += CHAR_BIT; in allocset()
1082 assert(nc % CHAR_BIT == 0); in allocset()
1083 nbytes = nc / CHAR_BIT * css; in allocset()
1096 p->g->sets[i].ptr = p->g->setbits + css*(i/CHAR_BIT); in allocset()
1105 cs->ptr = p->g->setbits + css*((no)/CHAR_BIT); in allocset()
1106 cs->mask = 1 << ((no) % CHAR_BIT); in allocset()
1265 int ncols = (g->ncsets+(CHAR_BIT-1)) / CHAR_BIT; in isinsets()
1282 int ncols = (g->ncsets+(CHAR_BIT in samesets()
[all...]
H A DStringRef.cpp252 std::bitset<1 << CHAR_BIT> CharBits;
277 std::bitset<1 << CHAR_BIT> CharBits;
293 std::bitset<1 << CHAR_BIT> CharBits;
318 std::bitset<1 << CHAR_BIT> CharBits;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
H A Dregcomp.c669 # define BACKSL (1<<CHAR_BIT) in p_simp_re()
1206 p->ncsalloc += CHAR_BIT; in allocset()
1210 assert(nc % CHAR_BIT == 0); in allocset()
1211 nbytes = nc / CHAR_BIT * css; in allocset()
1224 p->g->sets[i].ptr = p->g->setbits + css*(i/CHAR_BIT); in allocset()
1233 cs->ptr = p->g->setbits + css*((no)/CHAR_BIT); in allocset()
1234 cs->mask = 1 << ((no) % CHAR_BIT); in allocset()
1393 int ncols = (g->ncsets+(CHAR_BIT-1)) / CHAR_BIT; in isinsets()
1410 int ncols = (g->ncsets+(CHAR_BIT in samesets()
[all...]
H A DStringRef.cpp238 std::bitset<1 << CHAR_BIT> CharBits;
263 std::bitset<1 << CHAR_BIT> CharBits;
279 std::bitset<1 << CHAR_BIT> CharBits;
304 std::bitset<1 << CHAR_BIT> CharBits;
/third_party/node/src/crypto/
H A Dcrypto_aes.cc183 unsigned int remainder = (params.length % CHAR_BIT); in GetCounter()
187 unsigned int byte_length = params.length / CHAR_BIT; in GetCounter()
195 CeilDiv(params.length, static_cast<size_t>(CHAR_BIT)); in GetCounter()
207 unsigned int length_bytes = params.length / CHAR_BIT; in BlockWithZeroedCounter()
208 unsigned int remainder = params.length % CHAR_BIT; in BlockWithZeroedCounter()
H A Dcrypto_keygen.cc67 static_assert(std::numeric_limits<decltype(bits)>::max() / CHAR_BIT <= in AdditionalConfig()
69 params->length = bits / CHAR_BIT; in AdditionalConfig()
/third_party/musl/libc-test/src/functional/
H A Dstrftime.c125 if (sizeof(time_t) * CHAR_BIT >= 64) { in main()
175 if (sizeof(time_t) * CHAR_BIT >= 64) { in main()
/third_party/optimized-routines/networking/arm/
H A Dchksum_simd.c39 int64x1_t vshiftl = vdup_n_s64(CHAR_BIT * off); in __chksum_arm_simd()
119 int64x1_t vshiftr = vdup_n_s64(-CHAR_BIT * (8 - nbytes)); in __chksum_arm_simd()

Completed in 16 milliseconds

123456