/third_party/ltp/testcases/network/stress/ns-tools/ |
H A D | ns-icmpv4_sender.c | 416 size_t bitsize; in thrust_fakes() local 423 bitsize = 4; in thrust_fakes() 424 seed = bit_change_seed(bitsize, 1); in thrust_fakes() 429 bitsize = 4; in thrust_fakes() 430 seed = bit_change_seed(bitsize, 1); in thrust_fakes() 435 bitsize = sizeof(pkt->hdr.tot_len) * 8; in thrust_fakes() 436 seed = bit_change_seed(bitsize, bitsize / 8); in thrust_fakes() 468 bitsize = 13; in thrust_fakes() 469 seed = bit_change_seed(bitsize, in thrust_fakes() [all...] |
H A D | ns-icmpv6_sender.c | 639 size_t bitsize; in thrust_fakes() local 646 bitsize = 4; in thrust_fakes() 647 seed = bit_change_seed(bitsize, 1); in thrust_fakes() 652 bitsize = sizeof(pkt->hdr.ip6_plen) * 8; in thrust_fakes() 653 seed = bit_change_seed(bitsize, bitsize / 8); in thrust_fakes() 664 bitsize = sizeof(pkt->hdr.ip6_nxt) * 8; in thrust_fakes() 665 seed = bit_change_seed(bitsize, 0); in thrust_fakes() 696 bitsize = sizeof(pkt->hdr.ip6_dst.s6_addr32[rand_val]) * 8; in thrust_fakes() 697 seed = bit_change_seed(bitsize, bitsiz in thrust_fakes() [all...] |
H A D | ns-common.c | 222 * bitsize : bit size of data whose bit would be changed 228 u_int32_t bit_change_seed(size_t bitsize, size_t oversize) in bit_change_seed() argument 232 rand_val = rand() / ((RAND_MAX + 1U) / (bitsize + oversize)); in bit_change_seed() 234 seed = (rand_val < bitsize) ? (0x00000001 << rand_val) : 0; in bit_change_seed()
|
H A D | ns-traffic.h | 230 u_int32_t bit_change_seed(size_t bitsize, size_t oversize);
|
/third_party/python/Modules/_ctypes/ |
H A D | stgdict.c | 516 int bitsize = 0; in PyCStructUnionType_update_stgdict() local 518 if (!pair || !PyArg_ParseTuple(pair, "UO|i", &name, &desc, &bitsize)) { in PyCStructUnionType_update_stgdict() 564 if (bitsize <= 0 || bitsize > dict->size * 8) { in PyCStructUnionType_update_stgdict() 571 bitsize = 0; in PyCStructUnionType_update_stgdict() 614 &field_size, bitsize, &bitofs, in PyCStructUnionType_update_stgdict() 622 &field_size, bitsize, &bitofs, in PyCStructUnionType_update_stgdict() 735 int bitsize = 0; in PyCStructUnionType_update_stgdict() local 740 if (!PyArg_ParseTuple(pair, "UO|i", &name, &desc, &bitsize)) { in PyCStructUnionType_update_stgdict() 824 int bitsize in PyCStructUnionType_update_stgdict() local [all...] |
H A D | cfield.c | 42 * bitsize != 0: this is a bit field. 48 Py_ssize_t *pfield_size, int bitsize, int *pbitofs, in PyCField_FromDesc() 74 if (bitsize /* this is a bitfield request */ in PyCField_FromDesc() 83 && (*pbitofs + bitsize) <= *pfield_size) { in PyCField_FromDesc() 87 } else if (bitsize /* this is a bitfield request */ in PyCField_FromDesc() 90 && (*pbitofs + bitsize) <= dict->size * 8) { in PyCField_FromDesc() 94 } else if (bitsize) { in PyCField_FromDesc() 146 self->size = (bitsize << 16) + *pfield_size - *pbitofs - bitsize; in PyCField_FromDesc() 148 self->size = (bitsize << 1 in PyCField_FromDesc() 47 PyCField_FromDesc(PyObject *desc, Py_ssize_t index, Py_ssize_t *pfield_size, int bitsize, int *pbitofs, Py_ssize_t *psize, Py_ssize_t *poffset, Py_ssize_t *palign, int pack, int big_endian) PyCField_FromDesc() argument [all...] |
H A D | ctypes.h | 150 Py_ssize_t *pfield_size, int bitsize, int *pbitofs,
|
/third_party/mesa3d/src/compiler/nir/ |
H A D | nir_lower_ssbo.c | 89 nir_src *idx, unsigned bitsize) in nir_load_ssbo_prop() 94 nir_ssa_dest_init(&load->instr, &load->dest, 1, bitsize, NULL); in nir_load_ssbo_prop() 99 #define nir_ssbo_prop(b, prop, index, bitsize) \ 100 nir_load_ssbo_prop(b, nir_intrinsic_##prop, index, bitsize) 88 nir_load_ssbo_prop(nir_builder *b, nir_intrinsic_op op, nir_src *idx, unsigned bitsize) nir_load_ssbo_prop() argument
|
/third_party/mesa3d/src/compiler/isaspec/ |
H A D | isa.py | 430 # Max needed bitsize for one instruction 431 self.bitsize = 0 468 self.bitsize = max(self.bitsize, b.size) 535 words = self.bitsize / 32 547 words = self.bitsize / 32 554 def split_bits(self, value, bitsize): 555 ''' Split `value` into a list of bitsize-bit integers ''' 556 mask, parts = (1 << bitsize) - 1, [] 557 words = self.bitsize / bitsiz [all...] |
/third_party/mesa3d/src/panfrost/midgard/ |
H A D | midgard_address.c | 259 unsigned bitsize = match.A.def->bit_size; in mir_set_offset() local 260 assert(bitsize == 32 || bitsize == 64); in mir_set_offset() 264 ins->src_types[1] = nir_type_uint | bitsize; in mir_set_offset() 265 ins->load_store.bitsize_toggle = (bitsize == 64); in mir_set_offset()
|
H A D | midgard_compile.c | 1208 unsigned bitsize = dest_size * nr_comps; in emit_ubo_read() local 1211 if (bitsize <= 8) in emit_ubo_read() 1213 else if (bitsize <= 16) in emit_ubo_read() 1215 else if (bitsize <= 32) in emit_ubo_read() 1217 else if (bitsize <= 64) in emit_ubo_read() 1219 else if (bitsize <= 128) in emit_ubo_read() 1266 unsigned bitsize = nir_dest_bit_size(intr->dest) * in emit_global() local 1269 switch (bitsize) { in emit_global() 1282 if (bitsize & 31) { in emit_global() 1310 unsigned bitsize in emit_global() local 1364 unsigned bitsize = nir_src_bit_size(instr->src[val_src]); emit_atomic() local 2686 reg_mode_for_bitsize(unsigned bitsize) reg_mode_for_bitsize() argument [all...] |
H A D | compiler.h | 508 midgard_reg_mode reg_mode_for_bitsize(unsigned bitsize);
|
/third_party/mbedtls/scripts/mbedtls_dev/ |
H A D | bignum_core.py | 139 bitsize: int, descr: str, window_size: int) -> None: 140 self.bitsize = bitsize 145 return [str(self.bitsize), str(self.window_size)] 156 for bitsize, bitsize_description in cls.bitsizes: 158 yield (cls(bitsize, bitsize_description, window_size)
|
/third_party/NuttX/drivers/usbdev/gadget/fconfig/src/ |
H A D | usb_handle.c | 51 int bitsize = 0x8 * sizeof (devmap); in alloc_fd_for_handle() local 55 for (i = 1; i < bitsize; i++) in alloc_fd_for_handle()
|
/third_party/mesa3d/src/amd/llvm/ |
H A D | ac_llvm_build.c | 450 unsigned bitsize = ac_get_elem_bits(ctx, type); in ac_build_optimization_barrier() local 456 if (bitsize < 32) in ac_build_optimization_barrier() 470 if (bitsize < 32) in ac_build_optimization_barrier() 1868 unsigned bitsize; in ac_build_umsb() local 1870 bitsize = ac_get_elem_bits(ctx, LLVMTypeOf(arg)); in ac_build_umsb() 1871 switch (bitsize) { in ac_build_umsb() 1897 unreachable(!"invalid bitsize"); in ac_build_umsb() 1912 if (bitsize == 64) { in ac_build_umsb() 1914 } else if (bitsize < 32) { in ac_build_umsb() 2526 unsigned bitsize in ac_build_fsat() local 2567 ac_build_fract(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize) ac_build_fract() argument 2627 unsigned bitsize = ac_get_elem_bits(ctx, type); ac_build_fsign() local 2666 unsigned bitsize; ac_build_bit_count() local 2709 unsigned bitsize; ac_build_bitfield_reverse() local 3426 unsigned bitsize = ac_get_elem_bits(ctx, src_type); ac_build_wwm() local 3451 unsigned bitsize = ac_get_elem_bits(ctx, src_type); ac_build_set_inactive() local 4187 ac_build_frexp_exp(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize) ac_build_frexp_exp() argument 4208 ac_build_frexp_mant(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize) ac_build_frexp_mant() argument 4230 ac_build_canonicalize(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize) ac_build_canonicalize() argument [all...] |
H A D | ac_llvm_build.h | 436 LLVMValueRef ac_build_fract(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize); 536 LLVMValueRef ac_build_frexp_exp(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize); 538 LLVMValueRef ac_build_frexp_mant(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize); 541 unsigned bitsize);
|
H A D | ac_nir_to_llvm.c | 279 static LLVMValueRef emit_b2f(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize) in emit_b2f() argument 283 switch (bitsize) { in emit_b2f() 312 static LLVMValueRef emit_b2i(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize) in emit_b2i() argument 314 switch (bitsize) { in emit_b2i() 3403 unsigned num_components, unsigned bitsize, in load_interpolated_input() 3421 assert(bitsize == 16 || bitsize == 32); in load_interpolated_input() 3424 if (bitsize == 16) { in load_interpolated_input() 3401 load_interpolated_input(struct ac_nir_context *ctx, LLVMValueRef interp_param, unsigned index, unsigned comp_start, unsigned num_components, unsigned bitsize, bool high_16bits) load_interpolated_input() argument
|
/third_party/python/Lib/test/ |
H A D | test_struct.py | 186 self.bitsize = self.bytesize * 8 189 self.min_value = -(2**(self.bitsize-1)) 190 self.max_value = 2**(self.bitsize-1) - 1 194 self.max_value = 2**self.bitsize - 1 207 expected += 1 << self.bitsize 242 for exp in range(self.bitsize + 3): 246 for i in range(self.bitsize):
|
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_nir.c | 379 unsigned bitsize) in emit_b2f() 391 switch (bitsize) { in emit_b2f() 412 unsigned bitsize) in emit_b2i() 419 switch (bitsize) { in emit_b2i() 1556 int bitsize = nir_src_bit_size(instr->src[0]); in visit_store_ssbo() local 1557 bld_base->store_mem(bld_base, writemask, nc, bitsize, index_and_offset_are_uniform, idx, offset, val); in visit_store_ssbo() 1583 int bitsize = nir_src_bit_size(instr->src[2]); in visit_ssbo_atomic() local 1587 bld_base->atomic_mem(bld_base, instr->intrinsic, bitsize, idx, in visit_ssbo_atomic() 1828 int bitsize = nir_src_bit_size(instr->src[0]); in visit_shared_store() local 1829 bld_base->store_mem(bld_base, writemask, nc, bitsize, offset_is_unifor in visit_shared_store() 377 emit_b2f(struct lp_build_nir_context *bld_base, LLVMValueRef src0, unsigned bitsize) emit_b2f() argument 410 emit_b2i(struct lp_build_nir_context *bld_base, LLVMValueRef src0, unsigned bitsize) emit_b2i() argument 1841 int bitsize = nir_src_bit_size(instr->src[1]); visit_shared_atomic() local 1903 int bitsize = nir_src_bit_size(instr->src[0]); visit_store_global() local 1996 int bitsize = nir_src_bit_size(instr->src[0]); visit_store_scratch() local [all...] |
/third_party/mesa3d/src/panfrost/bifrost/ |
H A D | bifrost_compile.c | 230 * Emit and cache a split for a vector of a given bitsize. The vector may not be 391 unsigned bitsize); 404 unsigned bitsize = nir_dest_bit_size(instr->dest); in bi_copy_component() local 407 bi_emit_cached_split(b, tmp, total * bitsize); in bi_copy_component() 625 unsigned bitsize) in bi_make_vec_to() 627 if (bitsize == 32) { in bi_make_vec_to() 634 } else if (bitsize == 16) { in bi_make_vec_to() 636 } else if (bitsize == 8 && count == 1) { in bi_make_vec_to() 646 bi_load_ubo_to(bi_builder *b, unsigned bitsize, bi_index dest0, bi_index src0, in bi_load_ubo_to() argument 652 I = bi_ld_buffer_to(b, bitsize, dest in bi_load_ubo_to() 621 bi_make_vec_to(bi_builder *b, bi_index dst, bi_index *src, unsigned *channel, unsigned count, unsigned bitsize) bi_make_vec_to() argument 1945 unsigned bitsize = nir_src_bit_size(src.src); bi_alu_src_index() local [all...] |
/third_party/mesa3d/src/asahi/compiler/ |
H A D | agx_compile.c | 569 ASSERTED unsigned bitsize = nir_src_bit_size(src.src); in agx_alu_src_index() local 573 assert(bitsize == 1 || bitsize == 16 || bitsize == 32 || bitsize == 64); in agx_alu_src_index()
|
/third_party/mesa3d/src/gallium/drivers/zink/nir_to_spirv/ |
H A D | nir_to_spirv.c | 969 get_sized_uint_array_type(struct ntv_context *ctx, unsigned array_size, unsigned bitsize) in get_sized_uint_array_type() argument 972 SpvId array_type = spirv_builder_type_array(&ctx->builder, get_uvec_type(ctx, bitsize, 1), in get_sized_uint_array_type() 974 spirv_builder_emit_array_stride(&ctx->builder, array_type, bitsize / 8); in get_sized_uint_array_type() 985 unsigned bitsize = glsl_get_bit_size(glsl_get_array_element(glsl_get_struct_field(glsl_without_array(var->type), 0))); in get_bo_array_type() local 986 assert(bitsize); in get_bo_array_type() 993 return get_sized_uint_array_type(ctx, array_size, bitsize); in get_bo_array_type() 995 SpvId uint_type = spirv_builder_type_uint(&ctx->builder, bitsize); in get_bo_array_type() 997 spirv_builder_emit_array_stride(&ctx->builder, array_type, bitsize / 8); in get_bo_array_type() 1009 unsigned bitsize = glsl_get_bit_size(glsl_get_array_element(glsl_get_struct_field(bare_type, 0))); in get_bo_struct_type() local 1020 runtime_array = spirv_builder_type_runtime_array(&ctx->builder, get_uvec_type(ctx, is_64bit ? 64 : bitsize, in get_bo_struct_type() 1044 unsigned bitsize = glsl_get_bit_size(glsl_get_array_element(glsl_get_struct_field(glsl_without_array(var->type), 0))); emit_bo() local [all...] |
/third_party/mesa3d/src/amd/compiler/ |
H A D | aco_instruction_selection_setup.cpp | 241 get_reg_class(isel_context* ctx, RegType type, unsigned components, unsigned bitsize) in get_reg_class() argument 243 if (bitsize == 1) in get_reg_class() 246 return RegClass::get(type, components * bitsize / 8u); in get_reg_class()
|
/third_party/mesa3d/src/compiler/spirv/ |
H A D | vtn_cfg.c | 553 const unsigned bitsize = nir_alu_type_get_type_size(sel_type); in vtn_parse_switch() local 557 if (bitsize <= 32) { in vtn_parse_switch() 560 assert(bitsize == 64); in vtn_parse_switch()
|
/third_party/mesa3d/src/microsoft/compiler/ |
H A D | dxil_module.h | 341 dxil_value_type_bitsize_equal_to(const struct dxil_value *value, unsigned bitsize);
|