Home
last modified time | relevance | path

Searched refs:bitsize (Results 1 – 25 of 50) sorted by relevance

12

/external/pdfium/core/fxcodec/fax/
Dfaxmodule.cpp259 int bitsize) { in FaxGetRun() argument
267 if (*bitpos >= bitsize) in FaxGetRun()
284 int bitsize, in FaxG4GetRow() argument
292 if (*bitpos >= bitsize) in FaxG4GetRow()
303 if (*bitpos >= bitsize) in FaxG4GetRow()
307 if (*bitpos >= bitsize) in FaxG4GetRow()
317 src_buf, bitpos, bitsize); in FaxG4GetRow()
334 src_buf, bitpos, bitsize); in FaxG4GetRow()
351 if (*bitpos >= bitsize) in FaxG4GetRow()
365 if (*bitpos >= bitsize) in FaxG4GetRow()
[all …]
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmpv4_sender.c416 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, 0); in thrust_fakes()
484 bitsize = sizeof(pkt->hdr.protocol) * 8; in thrust_fakes()
[all …]
Dns-icmpv6_sender.c639 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, bitsize / 8); in thrust_fakes()
Dns-common.c228 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()
Dns-traffic.h230 u_int32_t bit_change_seed(size_t bitsize, size_t oversize);
/external/python/rsa/
Dcreate_timing_table.py25 def run_speed_test(bitsize): argument
32 rsa.newkeys(bitsize, accurate=accurate, poolsize=poolsize)
39 (bitsize, dur_per_call, iterations, duration))
43 for bitsize in (128, 256, 384, 512, 1024, 2048, 3072, 4096):
44 run_speed_test(bitsize)
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/SystemZ/
DSystemZOperands.td73 class AddressAsmOperand<string format, string bitsize, string dispsize,
76 let Name = format##bitsize##"Disp"##dispsize##length;
77 let ParserMethod = "parse"##format##bitsize;
85 class AddressOperand<string bitsize, string dispsize, string length,
87 : Operand<!cast<ValueType>("i"##bitsize)> {
91 "decode"##format##bitsize##"Disp"##dispsize##length##"Operand";
94 !cast<AddressAsmOperand>(format##bitsize##"Disp"##dispsize##length);
106 class AddressingMode<string seltype, string bitsize, string dispsize,
109 : ComplexPattern<!cast<ValueType>("i"##bitsize), numops,
112 AddressOperand<bitsize, dispsize, length, format, operands>;
[all …]
/external/llvm/lib/Target/SystemZ/
DSystemZOperands.td73 class AddressAsmOperand<string format, string bitsize, string dispsize,
76 let Name = format##bitsize##"Disp"##dispsize##length;
77 let ParserMethod = "parse"##format##bitsize;
85 class AddressOperand<string bitsize, string dispsize, string length,
87 : Operand<!cast<ValueType>("i"##bitsize)> {
91 "decode"##format##bitsize##"Disp"##dispsize##length##"Operand";
94 !cast<AddressAsmOperand>(format##bitsize##"Disp"##dispsize##length);
106 class AddressingMode<string seltype, string bitsize, string dispsize,
109 : ComplexPattern<!cast<ValueType>("i"##bitsize), numops,
112 AddressOperand<bitsize, dispsize, length, format, operands>;
[all …]
/external/python/rsa/rsa/
Dprime.py56 bitsize = rsa.common.bit_size(number)
58 if bitsize >= 1536:
60 if bitsize >= 1024:
62 if bitsize >= 512:
/external/mesa3d/src/compiler/nir/
Dnir_lower_ssbo.c89 nir_src *idx, unsigned bitsize) in nir_load_ssbo_prop() argument
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) \ argument
100 nir_load_ssbo_prop(b, nir_intrinsic_##prop, index, bitsize)
/external/python/cpython3/Modules/_ctypes/
Dstgdict.c504 int bitsize = 0; in PyCStructUnionType_update_stgdict() local
506 if (!pair || !PyArg_ParseTuple(pair, "UO|i", &name, &desc, &bitsize)) { in PyCStructUnionType_update_stgdict()
554 if (bitsize <= 0 || bitsize > dict->size * 8) { in PyCStructUnionType_update_stgdict()
561 bitsize = 0; in PyCStructUnionType_update_stgdict()
604 &field_size, bitsize, &bitofs, in PyCStructUnionType_update_stgdict()
612 &field_size, bitsize, &bitofs, in PyCStructUnionType_update_stgdict()
726 int bitsize = 0; in PyCStructUnionType_update_stgdict() local
731 if (!PyArg_ParseTuple(pair, "UO|i", &name, &desc, &bitsize)) { in PyCStructUnionType_update_stgdict()
815 int bitsize = 0; in PyCStructUnionType_update_stgdict() local
827 if (!PyArg_ParseTuple(pair, "UO|i", &name, &desc, &bitsize)) { in PyCStructUnionType_update_stgdict()
Dcfield.c47 Py_ssize_t *pfield_size, int bitsize, int *pbitofs, in PyCField_FromDesc() argument
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()
148 self->size = (bitsize << 16) + *pfield_size - *pbitofs - bitsize; in PyCField_FromDesc()
150 self->size = (bitsize << 16) + *pbitofs; in PyCField_FromDesc()
151 *pbitofs = bitsize; in PyCField_FromDesc()
164 if (bitsize == 0) in PyCField_FromDesc()
[all …]
/external/python/cpython2/Modules/_ctypes/
Dcfield.c47 Py_ssize_t *pfield_size, int bitsize, int *pbitofs, in PyCField_FromDesc() argument
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()
148 self->size = (bitsize << 16) + *pfield_size - *pbitofs - bitsize; in PyCField_FromDesc()
150 self->size = (bitsize << 16) + *pbitofs; in PyCField_FromDesc()
151 *pbitofs = bitsize; in PyCField_FromDesc()
164 if (bitsize == 0) in PyCField_FromDesc()
[all …]
Dstgdict.c445 int bitsize = 0; in PyCStructUnionType_update_stgdict() local
447 if (!pair || !PyArg_ParseTuple(pair, "OO|i", &name, &desc, &bitsize)) { in PyCStructUnionType_update_stgdict()
496 if (bitsize <= 0 || bitsize > dict->size * 8) { in PyCStructUnionType_update_stgdict()
503 bitsize = 0; in PyCStructUnionType_update_stgdict()
548 &field_size, bitsize, &bitofs, in PyCStructUnionType_update_stgdict()
556 &field_size, bitsize, &bitofs, in PyCStructUnionType_update_stgdict()
/external/python/cpython2/Lib/test/
Dtest_struct.py200 self.bitsize = self.bytesize * 8
203 self.min_value = -(2L**(self.bitsize-1))
204 self.max_value = 2L**(self.bitsize-1) - 1
208 self.max_value = 2L**self.bitsize - 1
221 expected += 1L << self.bitsize
255 for exp in range(self.bitsize + 3):
259 for i in range(self.bitsize):
/external/python/cffi/cffi/
Dbackend_ctypes.py744 fnames = [fname for (fname, BField, bitsize) in fields]
745 btypes = [BField for (fname, BField, bitsize) in fields]
746 bitfields = [bitsize for (fname, BField, bitsize) in fields]
750 for (fname, BField, bitsize) in fields:
751 if bitsize < 0:
755 cfields.append((fname, BField._ctype, bitsize))
788 BField, bitsize = name2fieldtype[fname]
789 assert bitsize < 0, \
798 for fname, BField, bitsize in fields:
804 if bitsize < 0:
Dmodel.py365 for name, type, bitsize, quals in zip(self.fldnames, self.fldtypes,
373 yield (name, type, bitsize, quals)
383 for name, type, bitsize, quals in self.enumfields():
386 bitsizes.append(bitsize)
Dcparser.py779 if decl.bitsize is None:
780 bitsize = -1
782 bitsize = self._parse_constant(decl.bitsize)
792 fldbitsize.append(bitsize)
/external/mesa3d/src/amd/llvm/
Dac_llvm_build.c401 unsigned bitsize = ac_get_elem_bits(ctx, type); in ac_build_optimization_barrier() local
407 if (bitsize < 32) in ac_build_optimization_barrier()
421 if (bitsize < 32) in ac_build_optimization_barrier()
1858 unsigned bitsize; in ac_build_umsb() local
1860 bitsize = ac_get_elem_bits(ctx, LLVMTypeOf(arg)); in ac_build_umsb()
1861 switch (bitsize) { in ac_build_umsb()
1902 if (bitsize == 64) { in ac_build_umsb()
1904 } else if (bitsize < 32) { in ac_build_umsb()
2459 unsigned bitsize = ac_get_elem_bits(ctx, type); in ac_build_fsat() local
2464 if (bitsize == 64 || (bitsize == 16 && ctx->chip_class <= GFX8)) { in ac_build_fsat()
[all …]
Dac_llvm_build.h437 LLVMValueRef ac_build_fract(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize);
537 LLVMValueRef ac_build_frexp_exp(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize);
539 LLVMValueRef ac_build_frexp_mant(struct ac_llvm_context *ctx, LLVMValueRef src0, unsigned bitsize);
542 unsigned bitsize);
/external/python/cffi/testing/cffi0/
Dtest_ffi_backend.py148 if name and cfield.bitsize > 0]
178 if cfield.bitsize < 0 or not name:
181 min_value = -(1 << (cfield.bitsize-1))
182 max_value = (1 << (cfield.bitsize-1)) - 1
185 max_value = (1 << cfield.bitsize) - 1
/external/python/cpython3/Lib/test/
Dtest_struct.py182 self.bitsize = self.bytesize * 8
185 self.min_value = -(2**(self.bitsize-1))
186 self.max_value = 2**(self.bitsize-1) - 1
190 self.max_value = 2**self.bitsize - 1
203 expected += 1 << self.bitsize
238 for exp in range(self.bitsize + 3):
242 for i in range(self.bitsize):
/external/python/pycparser/pycparser/
Dc_ast.py383 def __init__(self, name, quals, storage, funcspec, type, init, bitsize, coord=None): argument
390 self.bitsize = bitsize
397 if self.bitsize is not None: nodelist.append(("bitsize", self.bitsize))
405 if self.bitsize is not None:
406 yield self.bitsize
D_c_ast.cfg60 # bitsize: bit field size, or None
62 Decl: [name, quals, storage, funcspec, type*, init*, bitsize*]
/external/mesa3d/src/gallium/auxiliary/gallivm/
Dlp_bld_nir.c304 unsigned bitsize) in emit_b2f() argument
312 switch (bitsize) { in emit_b2f()
326 unsigned bitsize) in emit_b2i() argument
331 switch (bitsize) { in emit_b2i()
1229 int bitsize = nir_src_bit_size(instr->src[0]); in visit_store_ssbo() local
1230 bld_base->store_mem(bld_base, writemask, nc, bitsize, idx, offset, val); in visit_store_ssbo()
1464 int bitsize = nir_src_bit_size(instr->src[0]); in visit_shared_store() local
1465 bld_base->store_mem(bld_base, writemask, nc, bitsize, NULL, offset, val); in visit_shared_store()
1523 int bitsize = nir_src_bit_size(instr->src[0]); in visit_store_global() local
1527 bld_base->store_global(bld_base, writemask, nc, bitsize, addr_bitsize, addr, val); in visit_store_global()
[all …]

12