/third_party/mesa3d/src/compiler/spirv/ |
D | vtn_glsl450.c | 104 case 2: return build_mat2_det(&b->nb, cols); in build_mat_det() 105 case 3: return build_mat3_det(&b->nb, cols); in build_mat_det() 106 case 4: return build_mat4_det(&b->nb, cols); in build_mat_det() 156 elem[r] = build_mat_subdet(&b->nb, src, size, c, r); in matrix_inverse() 159 elem[r] = nir_fneg(&b->nb, elem[r]); in matrix_inverse() 162 adj_col[c] = nir_vec(&b->nb, elem, size); in matrix_inverse() 165 nir_ssa_def *det_inv = nir_frcp(&b->nb, build_mat_det(b, src)); in matrix_inverse() 169 val->elems[i]->def = nir_fmul(&b->nb, adj_col[i], det_inv); in matrix_inverse() 307 struct nir_builder *nb = &b->nb; in handle_glsl450_alu() local 325 dest->def = nir_radians(nb, src[0]); in handle_glsl450_alu() [all …]
|
D | vtn_alu.c | 107 vec_src[j] = nir_fdot(&b->nb, src0_transpose->elems[j]->def, in matrix_multiply() 110 dest->elems[i]->def = nir_vec(&b->nb, vec_src, src0_rows); in matrix_multiply() 121 nir_fmul(&b->nb, src0->elems[src0_columns - 1]->def, in matrix_multiply() 122 nir_channel(&b->nb, src1->elems[i]->def, src0_columns - 1)); in matrix_multiply() 125 nir_ffma(&b->nb, src0->elems[j]->def, in matrix_multiply() 126 nir_channel(&b->nb, src1->elems[i]->def, j), in matrix_multiply() 148 dest->elems[i]->def = nir_imul(&b->nb, mat->elems[i]->def, scalar); in mat_times_scalar() 150 dest->elems[i]->def = nir_fmul(&b->nb, mat->elems[i]->def, scalar); in mat_times_scalar() 165 dest->elems[i]->def = nir_fneg(&b->nb, src0->elems[i]->def); in vtn_handle_matrix_alu() 174 nir_fadd(&b->nb, src0->elems[i]->def, src1->elems[i]->def); in vtn_handle_matrix_alu() [all …]
|
D | vtn_amd.c | 36 def = nir_cube_face_index_amd(&b->nb, vtn_get_nir_ssa(b, w[5])); in vtn_handle_amd_gcn_shader_instruction() 39 def = nir_cube_face_coord_amd(&b->nb, vtn_get_nir_ssa(b, w[5])); in vtn_handle_amd_gcn_shader_instruction() 42 def = nir_pack_64_2x32(&b->nb, nir_shader_clock(&b->nb, NIR_SCOPE_SUBGROUP)); in vtn_handle_amd_gcn_shader_instruction() 82 nir_intrinsic_instr *intrin = nir_intrinsic_instr_create(b->nb.shader, op); in vtn_handle_amd_shader_ballot_instruction() 108 intrin->src[1] = nir_src_for_ssa(nir_imm_int(&b->nb, 0)); in vtn_handle_amd_shader_ballot_instruction() 111 nir_builder_instr_insert(&b->nb, &intrin->instr); in vtn_handle_amd_shader_ballot_instruction() 121 struct nir_builder *nb = &b->nb; in vtn_handle_amd_shader_trinary_minmax_instruction() local 140 def = nir_fmin(nb, src[0], nir_fmin(nb, src[1], src[2])); in vtn_handle_amd_shader_trinary_minmax_instruction() 143 def = nir_umin(nb, src[0], nir_umin(nb, src[1], src[2])); in vtn_handle_amd_shader_trinary_minmax_instruction() 146 def = nir_imin(nb, src[0], nir_imin(nb, src[1], src[2])); in vtn_handle_amd_shader_trinary_minmax_instruction() [all …]
|
D | vtn_opencl.c | 193 nir_variable *ret_tmp = nir_local_variable_create(b->nb.impl, in call_mangled_function() 196 ret_deref = nir_build_deref_var(&b->nb, ret_tmp); in call_mangled_function() 202 nir_builder_instr_insert(&b->nb, &call->instr); in call_mangled_function() 287 …nir_ssa_def *ret = nir_build_alu(&b->nb, nir_alu_op_for_opencl_opcode(b, (enum OpenCLstd_Entrypoin… in handle_alu() 290 ret = nir_u2u(&b->nb, ret, glsl_get_bit_size(dest_type->type)); in handle_alu() 474 return ret_deref ? nir_load_deref(&b->nb, ret_deref) : NULL; in handle_clc_fn() 482 nir_builder *nb = &b->nb; in handle_special() local 488 return nir_iabs_diff(nb, srcs[0], srcs[1]); in handle_special() 490 return nir_uabs_diff(nb, srcs[0], srcs[1]); in handle_special() 492 return nir_bitselect(nb, srcs[0], srcs[1], srcs[2]); in handle_special() [all …]
|
D | vtn_cfg.c | 103 value->def = nir_load_param(&b->nb, (*param_idx)++); in vtn_ssa_value_load_function_param() 120 nir_call_instr *call = nir_call_instr_create(b->nb.shader, in vtn_handle_function_call() 129 nir_local_variable_create(b->nb.impl, in vtn_handle_function_call() 132 ret_deref = nir_build_deref_var(&b->nb, ret_tmp); in vtn_handle_function_call() 142 nir_builder_instr_insert(&b->nb, &call->instr); in vtn_handle_function_call() 209 nir_builder_init(&b->nb, impl); in vtn_cfg_handle_prepass_instruction() 210 b->nb.cursor = nir_before_cf_list(&impl->body); in vtn_cfg_handle_prepass_instruction() 211 b->nb.exact = b->exact; in vtn_cfg_handle_prepass_instruction() 891 nir_local_variable_create(b->nb.impl, type->type, "phi"); in vtn_handle_phis_first_pass() 895 vtn_local_load(b, nir_build_deref_var(&b->nb, phi_var), 0)); in vtn_handle_phis_first_pass() [all …]
|
/third_party/boost/libs/math/example/ |
D | negative_binomial_example1.cpp | 115 negative_binomial nb(sales_quota, success_fraction); // type double by default. in main() local 120 << ".\nTherefore he would, on average, sell " << nb.success_fraction() * 100 in main() 125 cout << "With a success rate of " << nb.success_fraction() in main() 128 << " houses in order to sell all " << nb.successes() << " bars. " << endl; in main() 146 << pdf(nb, 5 - sales_quota) << endl; // == pdf(nb, 0) in main() 156 << pdf(nb, 6 - sales_quota) << endl; in main() 158 << pdf(nb, 7 - sales_quota) << endl; in main() 160 << pdf(nb, 8 - sales_quota) << endl; in main() 174 << pdf(nb, 5 - sales_quota) // 0 failures. in main() 175 + pdf(nb, 6 - sales_quota) // 1 failure. in main() [all …]
|
/third_party/cmsis/CMSIS/DSP/Source/QuaternionMathFunctions/ |
D | arm_quaternion2rotation_f32.c | 88 for(uint32_t nb=0; nb < nbQuaternions; nb++) in arm_quaternion2rotation_f32() local 148 for(uint32_t nb=0; nb < nbQuaternions; nb++) in arm_quaternion2rotation_f32() local 150 float32_t q00 = SQ(pInputQuaternions[0 + nb * 4]); in arm_quaternion2rotation_f32() 151 float32_t q11 = SQ(pInputQuaternions[1 + nb * 4]); in arm_quaternion2rotation_f32() 152 float32_t q22 = SQ(pInputQuaternions[2 + nb * 4]); in arm_quaternion2rotation_f32() 153 float32_t q33 = SQ(pInputQuaternions[3 + nb * 4]); in arm_quaternion2rotation_f32() 154 float32_t q01 = pInputQuaternions[0 + nb * 4]*pInputQuaternions[1 + nb * 4]; in arm_quaternion2rotation_f32() 155 float32_t q02 = pInputQuaternions[0 + nb * 4]*pInputQuaternions[2 + nb * 4]; in arm_quaternion2rotation_f32() 156 float32_t q03 = pInputQuaternions[0 + nb * 4]*pInputQuaternions[3 + nb * 4]; in arm_quaternion2rotation_f32() 157 float32_t q12 = pInputQuaternions[1 + nb * 4]*pInputQuaternions[2 + nb * 4]; in arm_quaternion2rotation_f32() [all …]
|
/third_party/ltp/testcases/kernel/fs/doio/ |
D | pattern.c | 42 int nb, ncmp, nleft; in pattern_check() local 58 nb = patlen - patshift; in pattern_check() 59 if (nleft < nb) { in pattern_check() 62 if (memcmp(cp, pat + patshift, nb)) in pattern_check() 65 nleft -= nb; in pattern_check() 66 cp += nb; in pattern_check() 70 nb = patshift; in pattern_check() 71 if (nleft < nb) { in pattern_check() 74 if (memcmp(cp, pat, nb)) in pattern_check() 77 nleft -= nb; in pattern_check() [all …]
|
/third_party/ltp/testcases/kernel/input/ |
D | input01.c | 35 static int verify_data(struct input_event *iev, int nb); 90 int nb; in send_events() local 92 for (nb = 0; nb < NB_TEST; ++nb) { in send_events() 100 int nb, rd; in check_events() local 104 nb = 0; in check_events() 106 while (nb < NB_TEST * 3) { in check_events() 118 if (verify_data(&iev[i], nb++)) in check_events() 126 static int verify_data(struct input_event *iev, int nb) in verify_data() argument 128 if (nb % 3 == 0) { in verify_data() 132 nb, iev->type, EV_REL); in verify_data() [all …]
|
/third_party/node/deps/npm/node_modules/from2/node_modules/string_decoder/lib/ |
D | string_decoder.js | 81 var nb; 86 nb = 4; 90 nb = 4; 95 nb = 3; 104 this.lastChar = Buffer.allocUnsafe(nb); 151 var nb = utf8CheckByte(buf[j]); 152 if (nb >= 0) { 153 if (nb > 0) self.lastNeed = nb - 1; 154 return nb; 156 if (--j < i || nb === -2) return 0; [all …]
|
/third_party/node/deps/npm/node_modules/duplexify/node_modules/string_decoder/lib/ |
D | string_decoder.js | 81 var nb; 86 nb = 4; 90 nb = 4; 95 nb = 3; 104 this.lastChar = Buffer.allocUnsafe(nb); 151 var nb = utf8CheckByte(buf[j]); 152 if (nb >= 0) { 153 if (nb > 0) self.lastNeed = nb - 1; 154 return nb; 156 if (--j < i || nb === -2) return 0; [all …]
|
/third_party/node/deps/npm/node_modules/through2/node_modules/string_decoder/lib/ |
D | string_decoder.js | 81 var nb; 86 nb = 4; 90 nb = 4; 95 nb = 3; 104 this.lastChar = Buffer.allocUnsafe(nb); 151 var nb = utf8CheckByte(buf[j]); 152 if (nb >= 0) { 153 if (nb > 0) self.lastNeed = nb - 1; 154 return nb; 156 if (--j < i || nb === -2) return 0; [all …]
|
/third_party/node/deps/npm/node_modules/flush-write-stream/node_modules/string_decoder/lib/ |
D | string_decoder.js | 81 var nb; 86 nb = 4; 90 nb = 4; 95 nb = 3; 104 this.lastChar = Buffer.allocUnsafe(nb); 151 var nb = utf8CheckByte(buf[j]); 152 if (nb >= 0) { 153 if (nb > 0) self.lastNeed = nb - 1; 154 return nb; 156 if (--j < i || nb === -2) return 0; [all …]
|
/third_party/node/deps/npm/node_modules/fs-write-stream-atomic/node_modules/string_decoder/lib/ |
D | string_decoder.js | 81 var nb; 86 nb = 4; 90 nb = 4; 95 nb = 3; 104 this.lastChar = Buffer.allocUnsafe(nb); 151 var nb = utf8CheckByte(buf[j]); 152 if (nb >= 0) { 153 if (nb > 0) self.lastNeed = nb - 1; 154 return nb; 156 if (--j < i || nb === -2) return 0; [all …]
|
/third_party/node/deps/npm/node_modules/are-we-there-yet/node_modules/string_decoder/lib/ |
D | string_decoder.js | 81 var nb; 86 nb = 4; 90 nb = 4; 95 nb = 3; 104 this.lastChar = Buffer.allocUnsafe(nb); 151 var nb = utf8CheckByte(buf[j]); 152 if (nb >= 0) { 153 if (nb > 0) self.lastNeed = nb - 1; 154 return nb; 156 if (--j < i || nb === -2) return 0; [all …]
|
/third_party/node/deps/npm/node_modules/string_decoder/lib/ |
D | string_decoder.js | 81 var nb; 86 nb = 4; 90 nb = 4; 95 nb = 3; 104 this.lastChar = Buffer.allocUnsafe(nb); 151 var nb = utf8CheckByte(buf[j]); 152 if (nb >= 0) { 153 if (nb > 0) self.lastNeed = nb - 1; 154 return nb; 156 if (--j < i || nb === -2) return 0; [all …]
|
/third_party/node/deps/npm/node_modules/stream-iterate/node_modules/string_decoder/lib/ |
D | string_decoder.js | 81 var nb; 86 nb = 4; 90 nb = 4; 95 nb = 3; 104 this.lastChar = Buffer.allocUnsafe(nb); 151 var nb = utf8CheckByte(buf[j]); 152 if (nb >= 0) { 153 if (nb > 0) self.lastNeed = nb - 1; 154 return nb; 156 if (--j < i || nb === -2) return 0; [all …]
|
/third_party/node/deps/npm/node_modules/parallel-transform/node_modules/string_decoder/lib/ |
D | string_decoder.js | 81 var nb; 86 nb = 4; 90 nb = 4; 95 nb = 3; 104 this.lastChar = Buffer.allocUnsafe(nb); 151 var nb = utf8CheckByte(buf[j]); 152 if (nb >= 0) { 153 if (nb > 0) self.lastNeed = nb - 1; 154 return nb; 156 if (--j < i || nb === -2) return 0; [all …]
|
/third_party/node/deps/npm/node_modules/concat-stream/node_modules/string_decoder/lib/ |
D | string_decoder.js | 81 var nb; 86 nb = 4; 90 nb = 4; 95 nb = 3; 104 this.lastChar = Buffer.allocUnsafe(nb); 151 var nb = utf8CheckByte(buf[j]); 152 if (nb >= 0) { 153 if (nb > 0) self.lastNeed = nb - 1; 154 return nb; 156 if (--j < i || nb === -2) return 0; [all …]
|
/third_party/boost/libs/numeric/ublas/test/tensor/ |
D | test_multiplication.cpp | 75 auto nb = extents_type {na[m],1}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 76 auto wb = strides_type (nb); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 77 auto b = vector_type (nb.product(), value_type{1} ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 123 auto nb = extents_type {na[1],na[0]}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 124 auto wb = strides_type (nb); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 125 auto b = vector_type (nb.product(), value_type{1} ); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 127 auto nc = extents_type {na[0],nb[1]}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 135 b.data(), nb.data(), wb.data()); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 164 auto nb = extents_type {na[m],1}; in BOOST_FIXTURE_TEST_CASE_TEMPLATE() 165 auto wb = strides_type (nb); in BOOST_FIXTURE_TEST_CASE_TEMPLATE() [all …]
|
/third_party/skia/third_party/externals/libjpeg-turbo/ |
D | jdhuff.h | 198 register int nb, look; \ 204 nb = 1; goto slowlabel; \ 208 if ((nb = (htbl->lookup[look] >> HUFF_LOOKAHEAD)) <= HUFF_LOOKAHEAD) { \ 209 DROP_BITS(nb); \ 214 jpeg_huff_decode(&state, get_buffer, bits_left, htbl, nb)) < 0) \ 220 #define HUFF_DECODE_FAST(s, nb, htbl) \ argument 224 nb = s >> HUFF_LOOKAHEAD; \ 226 DROP_BITS(nb); \ 228 if (nb > HUFF_LOOKAHEAD) { \ 231 s = (get_buffer >> bits_left) & ((1 << (nb)) - 1); \ [all …]
|
/third_party/lwip/src/netif/ppp/ |
D | pppos.c | 75 static err_t pppos_output_append(pppos_pcb *pppos, err_t err, struct pbuf *nb, u8_t c, u8_t accm, u… 76 static err_t pppos_output_last(pppos_pcb *pppos, err_t err, struct pbuf *nb, u16_t *fcs); 204 struct pbuf *nb; in pppos_write() local 213 nb = pbuf_alloc(PBUF_RAW, 0, PBUF_POOL); in pppos_write() 214 if (nb == NULL) { in pppos_write() 224 nb->tot_len = p->len; in pppos_write() 230 err = pppos_output_append(pppos, err, nb, PPP_FLAG, 0, NULL); in pppos_write() 238 err = pppos_output_append(pppos, err, nb, *s++, 1, &fcs_out); in pppos_write() 241 err = pppos_output_last(pppos, err, nb, &fcs_out); in pppos_write() 256 struct pbuf *nb, *p; in pppos_netif_output() local [all …]
|
/third_party/boost/boost/numeric/ublas/tensor/ |
D | multiplication.hpp | 58 PointerIn2 b, SizeType const*const nb, SizeType const*const wb) in ttt() argument 64 ttt(k+1, r, s, q, phia,phib, c, nc, wc, a, na, wa, b, nb, wb); in ttt() 68 assert(nc[k] == nb[phib[k-r]-1]); in ttt() 70 ttt(k+1, r, s, q, phia, phib, c, nc, wc, a, na, wa, b, nb, wb); in ttt() 74 assert(na[phia[k-s]-1] == nb[phib[k-r]-1]); in ttt() 76 ttt(k+1, r, s, q, phia, phib, c, nc, wc, a, na, wa, b, nb, wb); in ttt() 80 assert(na[phia[k-s]-1] == nb[phib[k-r]-1]); in ttt() 121 PointerIn2 b, SizeType const*const nb, SizeType const*const wb) in ttt() argument 127 ttt(k+1, r, s, q, c, nc, wc, a, na, wa, b, nb, wb); in ttt() 131 assert(nc[k] == nb[k-r]); in ttt() [all …]
|
/third_party/libjpeg-turbo/ |
D | jdhuff.h | 192 register int nb, look; \ 198 nb = 1; goto slowlabel; \ 202 if ((nb = (htbl->lookup[look] >> HUFF_LOOKAHEAD)) <= HUFF_LOOKAHEAD) { \ 203 DROP_BITS(nb); \ 208 jpeg_huff_decode(&state, get_buffer, bits_left, htbl, nb)) < 0) \ 214 #define HUFF_DECODE_FAST(s, nb, htbl) \ argument 218 nb = s >> HUFF_LOOKAHEAD; \ 220 DROP_BITS(nb); \ 222 if (nb > HUFF_LOOKAHEAD) { \ 225 s = (get_buffer >> bits_left) & ((1 << (nb)) - 1); \ [all …]
|
/third_party/flutter/skia/third_party/externals/libjpeg-turbo/ |
D | jdhuff.h | 192 register int nb, look; \ 198 nb = 1; goto slowlabel; \ 202 if ((nb = (htbl->lookup[look] >> HUFF_LOOKAHEAD)) <= HUFF_LOOKAHEAD) { \ 203 DROP_BITS(nb); \ 208 jpeg_huff_decode(&state, get_buffer, bits_left, htbl, nb)) < 0) \ 214 #define HUFF_DECODE_FAST(s, nb, htbl) \ argument 218 nb = s >> HUFF_LOOKAHEAD; \ 220 DROP_BITS(nb); \ 222 if (nb > HUFF_LOOKAHEAD) { \ 225 s = (get_buffer >> bits_left) & ((1 << (nb)) - 1); \ [all …]
|