/third_party/mesa3d/src/compiler/spirv/ |
D | vtn_glsl450.c | 110 return build_det(&b->nb, cols, size); in build_mat_det() 127 elem[r] = build_mat_subdet(&b->nb, cols, size, c, r); in matrix_inverse() 130 elem[r] = nir_fneg(&b->nb, elem[r]); in matrix_inverse() 133 adj_col[c] = nir_vec(&b->nb, elem, size); in matrix_inverse() 136 nir_ssa_def *det_inv = nir_frcp(&b->nb, build_det(&b->nb, cols, size)); in matrix_inverse() 140 val->elems[i]->def = nir_fmul(&b->nb, adj_col[i], det_inv); in matrix_inverse() 278 struct nir_builder *nb = &b->nb; in handle_glsl450_alu() local 336 dest->def = nir_radians(nb, src[0]); in handle_glsl450_alu() 339 dest->def = nir_degrees(nb, src[0]); in handle_glsl450_alu() 342 dest->def = nir_ftan(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() 164 return nir_f2fmp(&b->nb, def); in vtn_mediump_downconvert() 167 return nir_i2imp(&b->nb, def); in vtn_mediump_downconvert() [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 | 194 nir_variable *ret_tmp = nir_local_variable_create(b->nb.impl, in call_mangled_function() 197 ret_deref = nir_build_deref_var(&b->nb, ret_tmp); in call_mangled_function() 203 nir_builder_instr_insert(&b->nb, &call->instr); in call_mangled_function() 288 …nir_ssa_def *ret = nir_build_alu(&b->nb, nir_alu_op_for_opencl_opcode(b, (enum OpenCLstd_Entrypoin… in handle_alu() 291 ret = nir_u2u(&b->nb, ret, glsl_get_bit_size(dest_type->type)); in handle_alu() 475 return ret_deref ? nir_load_deref(&b->nb, ret_deref) : NULL; in handle_clc_fn() 483 nir_builder *nb = &b->nb; in handle_special() local 489 return nir_iabs_diff(nb, srcs[0], srcs[1]); in handle_special() 491 return nir_uabs_diff(nb, srcs[0], srcs[1]); in handle_special() 493 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() 235 nir_builder_init(&b->nb, impl); in vtn_cfg_handle_prepass_instruction() 236 b->nb.cursor = nir_before_cf_list(&impl->body); in vtn_cfg_handle_prepass_instruction() 237 b->nb.exact = b->exact; in vtn_cfg_handle_prepass_instruction() 926 nir_local_variable_create(b->nb.impl, type->type, "phi"); in vtn_handle_phis_first_pass() 935 vtn_local_load(b, nir_build_deref_var(&b->nb, phi_var), 0)); in vtn_handle_phis_first_pass() [all …]
|
D | vtn_subgroup.c | 39 index = nir_u2u32(&b->nb, index); in vtn_build_subgroup_instr() 54 nir_intrinsic_instr_create(b->nb.shader, nir_op); in vtn_build_subgroup_instr() 66 nir_builder_instr_insert(&b->nb, &intrin->instr); in vtn_build_subgroup_instr() 84 nir_intrinsic_instr_create(b->nb.shader, nir_intrinsic_elect); in vtn_handle_subgroup() 87 nir_builder_instr_insert(&b->nb, &elect->instr); in vtn_handle_subgroup() 98 nir_intrinsic_instr_create(b->nb.shader, nir_intrinsic_ballot); in vtn_handle_subgroup() 102 nir_builder_instr_insert(&b->nb, &ballot->instr); in vtn_handle_subgroup() 113 nir_intrinsic_instr_create(b->nb.shader, in vtn_handle_subgroup() 117 intrin->src[1] = nir_src_for_ssa(nir_load_subgroup_invocation(&b->nb)); in vtn_handle_subgroup() 121 nir_builder_instr_insert(&b->nb, &intrin->instr); in vtn_handle_subgroup() [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/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/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/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/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/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/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/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/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/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/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/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/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 …]
|
/third_party/flutter/skia/third_party/externals/wuffs/lang/check/ |
D | assert.go | 111 func (z facts) refine(n *a.Expr, nb bounds, tm *t.Map) (bounds, error) { 112 if nb[0] == nil || nb[1] == nil { 113 return nb, nil 126 originalNB, changed := nb, false 129 if nb[0].Cmp(cv) == 0 { 130 nb[0] = add1(nb[0]) 132 } else if nb[1].Cmp(cv) == 0 { 133 nb[1] = sub1(nb[1]) 137 if nb[1].Cmp(cv) >= 0 { 138 nb[1] = sub1(cv) [all …]
|
/third_party/python/Lib/tkinter/test/test_ttk/ |
D | test_widgets.py | 900 self.nb = self.create(padding=0) 903 self.nb.add(self.child1, text='a') 904 self.nb.add(self.child2, text='b') 910 self.nb.forget(0) 911 self.nb.hide(self.child2) 912 self.assertRaises(tkinter.TclError, self.nb.tab, self.child1) 913 self.assertEqual(self.nb.index('end'), 1) 914 self.nb.add(self.child2) 915 self.assertEqual(self.nb.index('end'), 1) 916 self.nb.select(self.child2) [all …]
|