Home
last modified time | relevance | path

Searched refs:prefix_bits (Results 1 – 4 of 4) sorted by relevance

/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dvarint.h37 #define GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits) \ argument
38 ((uint32_t)((1 << (8 - (prefix_bits))) - 1))
41 #define GRPC_CHTTP2_VARINT_LENGTH(n, prefix_bits) \ argument
42 ((n) < GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits) \
45 (n)-GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits)))
47 #define GRPC_CHTTP2_WRITE_VARINT(n, prefix_bits, prefix_or, target, length) \ argument
54 (prefix_or) | (uint8_t)GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits); \
56 (n)-GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits), (tgt) + 1, (length)-1); \
/external/rust/crates/grpcio-sys/grpc/src/core/ext/transport/chttp2/transport/
Dvarint.h37 #define GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits) \ argument
38 ((uint32_t)((1 << (8 - (prefix_bits))) - 1))
41 #define GRPC_CHTTP2_VARINT_LENGTH(n, prefix_bits) \ argument
42 ((n) < GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits) \
45 (n)-GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits)))
47 #define GRPC_CHTTP2_WRITE_VARINT(n, prefix_bits, prefix_or, target, length) \ argument
54 (prefix_or) | (uint8_t)GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits); \
56 (n)-GRPC_CHTTP2_MAX_IN_PREFIX(prefix_bits), (tgt) + 1, (length)-1); \
/external/grpc-grpc/test/core/transport/chttp2/
Dvarint_test.cc27 static void test_varint(uint32_t value, uint32_t prefix_bits, uint8_t prefix_or, in test_varint() argument
29 uint32_t nbytes = GRPC_CHTTP2_VARINT_LENGTH(value, prefix_bits); in test_varint()
36 GRPC_CHTTP2_WRITE_VARINT(value, prefix_bits, prefix_or, in test_varint()
43 #define TEST_VARINT(value, prefix_bits, prefix_or, expect) \ argument
44 test_varint(value, prefix_bits, prefix_or, expect, sizeof(expect) - 1)
/external/mesa3d/src/amd/llvm/
Dac_llvm_build.c4653 LLVMValueRef prefix_bits = LLVMBuildSub(builder, bit, LLVMConstInt(type, 1, 0), ""); in ac_prefix_bitcount() local
4654 LLVMValueRef prefix_mask = LLVMBuildAnd(builder, mask, prefix_bits, ""); in ac_prefix_bitcount()