/external/python/rsa/tests/ |
D | test_common.py | 21 from rsa.common import byte_size, bit_size, inverse 62 self.assertEqual(bit_size(0), 0) 65 self.assertEqual(bit_size(1023), 10) 66 self.assertEqual(bit_size(1024), 11) 67 self.assertEqual(bit_size(1025), 11) 68 self.assertEqual(bit_size(1 << 1024), 1025) 69 self.assertEqual(bit_size((1 << 1024) + 1), 1025) 70 self.assertEqual(bit_size((1 << 1024) - 1), 1024) 73 self.assertEqual(bit_size(-1023), 10) 74 self.assertEqual(bit_size(-1024), 11) [all …]
|
/external/mesa3d/src/compiler/nir/ |
D | nir_lower_subgroups.c | 34 unsigned num_components, unsigned bit_size) in uint_to_ballot_type() argument 37 assert(value->bit_size == 32 || value->bit_size == 64); in uint_to_ballot_type() 43 assert(bit_size == 32); in uint_to_ballot_type() 45 if (value->bit_size == 32) { in uint_to_ballot_type() 48 assert(value->bit_size == 64); in uint_to_ballot_type() 56 assert(bit_size == 64); in uint_to_ballot_type() 58 if (value->bit_size == 32) { in uint_to_ballot_type() 61 assert(value->bit_size == 64); in uint_to_ballot_type() 81 1, intrin->dest.ssa.bit_size, NULL); in lower_read_invocation_to_scalar() 137 const unsigned bit_size = MAX2(options->ballot_bit_size, in lower_subgroups_intrin() local [all …]
|
D | nir_algebraic.py | 126 self.bit_size = int(m.group('bits')) if m.group('bits') else 0 129 self.bit_size = 0 132 assert self.bit_size == 0 or self.bit_size == 32 133 self.bit_size = 32 168 self.bit_size = int(m.group('bits')) if m.group('bits') else 0 171 assert self.bit_size == 0 or self.bit_size == 32 172 self.bit_size = 32 199 self.bit_size = int(m.group('bits')) if m.group('bits') else 0 336 return val.bit_size 355 assert val.bit_size == 0 or val.bit_size == dst_type_bits [all …]
|
D | nir_opt_constant_folding.c | 58 unsigned bit_size = 0; in constant_fold_alu_instr() local 60 bit_size = instr->dest.dest.ssa.bit_size; in constant_fold_alu_instr() 66 if (bit_size == 0 && in constant_fold_alu_instr() 68 bit_size = instr->src[i].src.ssa->bit_size; in constant_fold_alu_instr() 79 if (load_const->def.bit_size == 64) in constant_fold_alu_instr() 89 if (bit_size == 0) in constant_fold_alu_instr() 90 bit_size = 32; in constant_fold_alu_instr() 97 bit_size, src); in constant_fold_alu_instr() 102 instr->dest.dest.ssa.bit_size); in constant_fold_alu_instr()
|
D | nir_builder.h | 149 assert(then_def->bit_size == else_def->bit_size); in nir_if_phi() 151 then_def->num_components, then_def->bit_size, NULL); in nir_if_phi() 180 nir_ssa_undef(nir_builder *build, unsigned num_components, unsigned bit_size) in nir_ssa_undef() argument 183 nir_ssa_undef_instr_create(build->shader, num_components, bit_size); in nir_ssa_undef() 194 unsigned bit_size, nir_const_value value) in nir_build_imm() argument 197 nir_load_const_instr_create(build->shader, num_components, bit_size); in nir_build_imm() 267 nir_imm_intN_t(nir_builder *build, uint64_t x, unsigned bit_size) in nir_imm_intN_t() argument 272 assert(bit_size <= 64); in nir_imm_intN_t() 273 v.i64[0] = x & (~0ull >> (64 - bit_size)); in nir_imm_intN_t() 275 return nir_build_imm(build, 1, bit_size, v); in nir_imm_intN_t() [all …]
|
D | nir_validate.c | 130 unsigned bit_size, unsigned num_components); 134 unsigned bit_size, unsigned num_components) in validate_reg_src() argument 157 if (bit_size) in validate_reg_src() 158 validate_assert(state, src->reg.reg->bit_size == bit_size); in validate_reg_src() 178 unsigned bit_size, unsigned num_components) in validate_ssa_src() argument 201 if (bit_size) in validate_ssa_src() 202 validate_assert(state, src->ssa->bit_size == bit_size); in validate_ssa_src() 211 unsigned bit_size, unsigned num_components) in validate_src() argument 219 validate_ssa_src(src, state, bit_size, num_components); in validate_src() 221 validate_reg_src(src, state, bit_size, num_components); in validate_src() [all …]
|
D | nir_lower_load_const_to_scalar.c | 52 nir_load_const_instr_create(b.shader, 1, lower->def.bit_size); in lower_load_const_instr_scalar() 53 if (lower->def.bit_size == 64) in lower_load_const_instr_scalar() 57 assert(lower->def.bit_size == 64 || lower->def.bit_size == 32); in lower_load_const_instr_scalar()
|
D | nir_search.c | 123 if (value->bit_size && in match_value() 124 nir_src_bit_size(instr->src[src].src) != value->bit_size) in match_value() 196 switch (load->def.bit_size) { in match_value() 215 switch (load->def.bit_size) { in match_value() 258 if (expr->value.bit_size && in match_expression() 259 instr->dest.dest.ssa.bit_size != expr->value.bit_size) in match_expression() 372 if (value->bit_size) { in build_bitsize_tree() 373 assert(!tree->is_dest_sized || tree->dest_size == value->bit_size); in build_bitsize_tree() 374 tree->common_size = value->bit_size; in build_bitsize_tree() 593 bitsize_tree_filter_down(tree, instr->dest.dest.ssa.bit_size); in nir_replace_instr() [all …]
|
D | nir_phi_builder.c | 55 unsigned bit_size; member 109 unsigned bit_size, const BITSET_WORD *defs) in nir_phi_builder_add_value() argument 117 val->bit_size = bit_size; in nir_phi_builder_add_value() 191 val->bit_size); in nir_phi_builder_value_get_block_def() 216 val->bit_size, NULL); in nir_phi_builder_value_get_block_def()
|
D | nir_instr_set.c | 55 hash = HASH(hash, instr->dest.dest.ssa.bit_size); in hash_alu() 86 unsigned size = instr->def.num_components * (instr->def.bit_size / 8); in hash_load_const() 131 hash = HASH(hash, instr->dest.ssa.bit_size); in hash_intrinsic() 273 if (alu1->dest.dest.ssa.bit_size != alu2->dest.dest.ssa.bit_size) in nir_instrs_equal() 333 if (load1->def.bit_size != load2->def.bit_size) in nir_instrs_equal() 337 load1->def.num_components * (load1->def.bit_size / 8u)) == 0; in nir_instrs_equal() 373 if (info->has_dest && intrinsic1->dest.ssa.bit_size != in nir_instrs_equal() 374 intrinsic2->dest.ssa.bit_size) in nir_instrs_equal()
|
D | nir_lower_phis_to_scalar.c | 192 unsigned bit_size = phi->dest.ssa.bit_size; in lower_phis_to_scalar_block() local 209 bit_size, NULL); in lower_phis_to_scalar_block() 215 phi->dest.ssa.bit_size, NULL); in lower_phis_to_scalar_block() 223 nir_ssa_dest_init(&mov->instr, &mov->dest.dest, 1, bit_size, NULL); in lower_phis_to_scalar_block()
|
D | nir_lower_regs_to_ssa.c | 99 reg->bit_size, reg->name); in rewrite_dest() 179 reg->bit_size, reg->name); in rewrite_alu_instr() 206 reg->bit_size, reg->name); in rewrite_alu_instr() 249 reg->bit_size, defs); in nir_lower_regs_to_ssa_impl()
|
D | nir_opcodes.py | 181 for bit_size in bit_sizes: 182 if bit_size == 16 and dst_t == tfloat and src_t == tfloat: 186 bit_size, rnd_mode), 187 dst_t + str(bit_size), src_t, "src0") 189 unop_convert("{0}2{1}{2}".format(src_t[0], dst_t[0], bit_size), 190 dst_t + str(bit_size), src_t, "src0")
|
D | nir_lower_alu_to_scalar.c | 35 unsigned bit_size) in nir_alu_ssa_dest_init() argument 38 bit_size, NULL); in nir_alu_ssa_dest_init() 51 nir_alu_ssa_dest_init(chan, 1, instr->dest.dest.ssa.bit_size); in lower_reduction() 230 nir_alu_ssa_dest_init(lower, 1, instr->dest.dest.ssa.bit_size); in lower_alu_instr_scalar()
|
D | nir_lower_indirect_derefs.c | 107 unsigned bit_size = orig_instr->dest.ssa.bit_size; in emit_load_store() local 109 load->num_components, bit_size, NULL); in emit_load_store()
|
D | nir_loop_analyze.c | 401 nir_const_value *limit, nir_op cond_op, unsigned bit_size, in test_iterations() argument 431 nir_eval_const_opcode(mul_op, 1, bit_size, mul_src); in test_iterations() 436 nir_eval_const_opcode(add_op, 1, bit_size, add_src); in test_iterations() 443 nir_const_value result = nir_eval_const_opcode(cond_op, 1, bit_size, src); in test_iterations() 512 unsigned bit_size = nir_src_bit_size(alu->src[0].src); in calculate_iterations() local 516 if (test_iterations(iter_bias, step, limit, cond_alu->op, bit_size, in calculate_iterations()
|
D | nir_lower_var_copies.c | 120 unsigned bit_size = glsl_get_bit_size(src_tail->type); in emit_copy_load_store() local 126 nir_ssa_dest_init(&load->instr, &load->dest, num_components, bit_size, in emit_copy_load_store()
|
/external/mesa3d/prebuilt-intermediates/nir/ |
D | nir_constant_expressions.c | 287 evaluate_b2f(MAYBE_UNUSED unsigned num_components, unsigned bit_size, in evaluate_b2f() argument 292 switch (bit_size) { in evaluate_b2f() 346 evaluate_b2i(MAYBE_UNUSED unsigned num_components, unsigned bit_size, in evaluate_b2i() argument 351 switch (bit_size) { in evaluate_b2i() 420 evaluate_ball_fequal2(MAYBE_UNUSED unsigned num_components, unsigned bit_size, in evaluate_ball_fequal2() argument 425 switch (bit_size) { in evaluate_ball_fequal2() 515 evaluate_ball_fequal3(MAYBE_UNUSED unsigned num_components, unsigned bit_size, in evaluate_ball_fequal3() argument 520 switch (bit_size) { in evaluate_ball_fequal3() 610 evaluate_ball_fequal4(MAYBE_UNUSED unsigned num_components, unsigned bit_size, in evaluate_ball_fequal4() argument 615 switch (bit_size) { in evaluate_ball_fequal4() [all …]
|
/external/mesa3d/src/gallium/drivers/r600/sb/ |
D | sb_valtable.cpp | 353 assert(id < bit_size); in get() 360 assert(id < bit_size); in set() 373 assert(id < bit_size); in set_chk() 396 if (cur_data_size && size > bit_size && bit_size % bt_bits) { in resize() 397 basetype clear_mask = (~(basetype)0u) << (bit_size % bt_bits); in resize() 401 bit_size = size; in resize() 405 assert(start < bit_size); in find_bit() 421 return bit_size; in find_bit() 494 std::swap(bit_size, bs2.bit_size); in swap() 498 if (bit_size != bs2.bit_size) in operator ==() [all …]
|
/external/python/rsa/rsa/ |
D | randnum.py | 83 bit_size = common.bit_size(maxvalue) 87 value = read_random_int(bit_size) 95 bit_size -= 1
|
D | common.py | 31 def bit_size(num): function 81 return ceil_div(bit_size(number), 8)
|
/external/mesa3d/src/compiler/glsl/ |
D | glsl_to_nir.cpp | 76 void add_instr(nir_instr *instr, unsigned num_components, unsigned bit_size); 998 unsigned bit_size = glsl_get_bit_size(type); in visit() local 1000 type->vector_elements, bit_size, NULL); in visit() 1023 type->vector_elements, bit_size, NULL); in visit() 1084 unsigned bit_size = glsl_get_bit_size(type); in visit() local 1086 type->vector_elements, bit_size, NULL); in visit() 1147 unsigned bit_size = glsl_get_bit_size(ir->return_deref->type); in visit() local 1150 bit_size, NULL); in visit() 1341 unsigned bit_size) in add_instr() argument 1346 nir_ssa_dest_init(instr, dest, num_components, bit_size, NULL); in add_instr() [all …]
|
/external/mesa3d/src/compiler/spirv/ |
D | spirv_to_nir.c | 166 unsigned bit_size = glsl_get_bit_size(val->type); in vtn_undef_ssa_value() local 167 val->def = nir_ssa_undef(&b->nb, num_components, bit_size); in vtn_undef_ssa_value() 216 int bit_size = glsl_get_bit_size(type); in vtn_const_ssa_value() local 220 nir_load_const_instr_create(b->shader, num_components, bit_size); in vtn_const_ssa_value() 236 nir_load_const_instr_create(b->shader, rows, bit_size); in vtn_const_ssa_value() 996 int bit_size = w[2]; in vtn_handle_type() local 999 switch (bit_size) { in vtn_handle_type() 1017 int bit_size = w[2]; in vtn_handle_type() local 1019 switch (bit_size) { in vtn_handle_type() 1411 int bit_size = glsl_get_bit_size(val->type->type); in vtn_handle_constant() local [all …]
|
/external/mesa3d/src/intel/compiler/ |
D | brw_fs_surface_builder.h | 71 unsigned bit_size, 78 unsigned bit_size,
|
D | brw_nir_opt_peephole_ffma.c | 212 unsigned bit_size = add->dest.dest.ssa.bit_size; in brw_nir_opt_peephole_ffma_block() local 252 bit_size, in brw_nir_opt_peephole_ffma_block()
|