Home
last modified time | relevance | path

Searched refs:kBits (Results 1 – 8 of 8) sorted by relevance

/third_party/skia/modules/skplaintexteditor/src/
Dstringslice.cpp76 static constexpr unsigned kBits = 4; in realloc() local
77 fCapacity = size ? (((size - 1) >> kBits) + 1) << kBits : 0; in realloc()
78 assert(fCapacity % (1u << kBits) == 0); in realloc()
/third_party/flutter/skia/experimental/editor/
Dstringslice.cpp76 static constexpr unsigned kBits = 4; in realloc() local
77 fCapacity = size ? (((size - 1) >> kBits) + 1) << kBits : 0; in realloc()
78 assert(fCapacity % (1u << kBits) == 0); in realloc()
/third_party/skia/third_party/externals/angle2/src/libANGLE/
Dangletypes.h494 static constexpr size_t kBits = 8; member
496 static constexpr size_t kBits = ElementCount > 16 ? 8 : 4; member
499 using Type = typename std::conditional<kBits == 8, uint64_t, uint32_t>::type;
501 static constexpr Type kMaxValueMask = (kBits == 8) ? 0xFF : 0xF;
507 return static_cast<Type>(0xFFFFFFFFFFFFFFFFull >> (64 - drawBuffers * kBits)); in GetMask()
511 static constexpr Type kReplicator = (kBits == 8) ? 0x0101010101010101ull : 0x11111111;
519 return static_cast<ElementType>((values >> (index * kBits)) & kMaxValueMask); in GetValueIndexed()
538 const Type selector = kMaxValueMask << (index * kBits); in SetValueIndexed()
541 const Type builtValue = static_cast<Type>(value) << (index * kBits); in SetValueIndexed()
/third_party/json/test/thirdparty/Fuzzer/
DFuzzerTracePC.cpp64 const uintptr_t kBits = 12; in HandleCallerCallee() local
65 const uintptr_t kMask = (1 << kBits) - 1; in HandleCallerCallee()
66 uintptr_t Idx = (Caller & kMask) | ((Callee & kMask) << kBits); in HandleCallerCallee()
/third_party/flutter/skia/src/gpu/mock/
DGrMockGpu.cpp267 static constexpr int kBits = 8; in createStencilAttachmentForRenderTarget() local
269 return new GrMockStencilAttachment(this, width, height, kBits, rt->numSamples()); in createStencilAttachmentForRenderTarget()
/third_party/openssl/test/
Dbntest.c2393 static int test_smallprime(int kBits) in test_smallprime() argument
2401 if (kBits <= 1) { in test_smallprime()
2402 if (!TEST_false(BN_generate_prime_ex(r, kBits, 0, in test_smallprime()
2406 if (!TEST_true(BN_generate_prime_ex(r, kBits, 0, in test_smallprime()
2408 || !TEST_int_eq(BN_num_bits(r), kBits)) in test_smallprime()
2418 static int test_smallsafeprime(int kBits) in test_smallsafeprime() argument
2426 if (kBits <= 5 && kBits != 3) { in test_smallsafeprime()
2427 if (!TEST_false(BN_generate_prime_ex(r, kBits, 1, in test_smallsafeprime()
2431 if (!TEST_true(BN_generate_prime_ex(r, kBits, 1, in test_smallsafeprime()
2433 || !TEST_int_eq(BN_num_bits(r), kBits)) in test_smallsafeprime()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/
DvktApiCopiesAndBlittingTests.cpp4342 static const MirrorModeBits kBits[] = { MIRROR_MODE_X, MIRROR_MODE_Y, MIRROR_MODE_Z }; in getMirrorMode() local
4349 for (int i = 0; i < DE_LENGTH_OF_ARRAY(kBits); ++i) in getMirrorMode()
4351 const MirrorModeBits bit = kBits[i]; in getMirrorMode()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiCopiesAndBlittingTests.cpp4342 static const MirrorModeBits kBits[] = { MIRROR_MODE_X, MIRROR_MODE_Y, MIRROR_MODE_Z }; in getMirrorMode() local
4349 for (int i = 0; i < DE_LENGTH_OF_ARRAY(kBits); ++i) in getMirrorMode()
4351 const MirrorModeBits bit = kBits[i]; in getMirrorMode()