Home
last modified time | relevance | path

Searched refs:vi (Results 1 – 25 of 467) sorted by relevance

12345678910>>...19

/external/libnl/lib/route/link/
Dvlan.c73 struct vlan_info *vi; in vlan_alloc() local
75 if ((vi = calloc(1, sizeof(*vi))) == NULL) in vlan_alloc()
78 link->l_info = vi; in vlan_alloc()
87 struct vlan_info *vi; in vlan_parse() local
98 vi = link->l_info; in vlan_parse()
101 vi->vi_vlan_id = nla_get_u16(tb[IFLA_VLAN_ID]); in vlan_parse()
102 vi->vi_mask |= VLAN_HAS_ID; in vlan_parse()
109 vi->vi_flags = flags.flags; in vlan_parse()
110 vi->vi_mask |= VLAN_HAS_FLAGS; in vlan_parse()
118 memset(vi->vi_ingress_qos, 0, sizeof(vi->vi_ingress_qos)); in vlan_parse()
[all …]
/external/aac/libFDK/src/
Dfft.cpp337 #define SUMDIFF_EIGTH(x, y, ix, iy, vr, vi, ur, ui) \ argument
339 vi = (x[ 8 + ix]>>1) + (x[24 + ix]>>1); /* Re C + Re D */ \
342 y[ 0 + iy] = vr + vi; /* Re A' = ReA + ReB +ReC + ReD */ \
343 y[ 4 + iy] = vr - vi; /* Re C' = -(ReC+ReD) + (ReA+ReB) */ \
347 vi = vi - x[24 + ix]; /* Re C - Re D */ \
352 y[ 3 + iy] = ur - vi; /* Im B'= -Re C + Re D + Im A - Im B */ \
353 y[ 7 + iy] = vi + ur; /* Im D'= Re C - Re D + Im A - Im B */
360 FIXP_DBL vr, vi, ur, ui; in fft_16() local
363 SUMDIFF_EIGTH(x, y, 0, 0, vr, vi, ur, ui); in fft_16()
364 SUMDIFF_EIGTH(x, y, 4, 8, vr, vi, ur, ui); in fft_16()
[all …]
Dfft_rad2.cpp174 FIXP_DBL vr,vi,ur,ui; in dit_fft() local
177 vi = x[t2+1]>>1; in dit_fft()
184 x[t1+1] = ui+vi; in dit_fft()
187 x[t2+1] = ui-vi; in dit_fft()
194 vi = x[t2]>>1; in dit_fft()
200 x[t1+1] = ui-vi; in dit_fft()
203 x[t2+1] = ui+vi; in dit_fft()
216 FIXP_DBL vr,vi,ur,ui; in dit_fft() local
218 cplxMultDiv2(&vi, &vr, x[t2+1], x[t2], cs); in dit_fft()
224 x[t1+1] = ui+vi; in dit_fft()
[all …]
/external/clang/test/CodeGen/
Dbuiltins-ppc-altivec.c14 vector int vi = { -1, 2, -3, 4 }; variable
62 vi = vec_abs(vi); in test1()
85 vi = vec_abss(vi); in test1()
140 res_vi = vec_add(vi, vi); in test1()
144 res_vi = vec_add(vbi, vi); in test1()
148 res_vi = vec_add(vi, vbi); in test1()
216 res_vi = vec_vadduwm(vi, vi); in test1()
220 res_vi = vec_vadduwm(vbi, vi); in test1()
224 res_vi = vec_vadduwm(vi, vbi); in test1()
302 res_vi = vec_adds(vi, vi); in test1()
[all …]
Daltivec.c19 vector int vi; in test2() local
21 vi = (vector int)(1); // CHECK: <i32 1, i32 1, i32 1, i32 1> in test2()
23 vi = (vector int)(1, 2, 3, 4); // CHECK: <i32 1, i32 2, i32 3, i32 4> in test2()
24 vi = (vector int)(1, 2, 3, 4, 5); // CHECK: <i32 1, i32 2, i32 3, i32 4> in test2()
26 vi = (vector int){1}; // CHECK: <i32 1, i32 0, i32 0, i32 0> in test2()
27 vi = (vector int){1, 2}; // CHECK: <i32 1, i32 2, i32 0, i32 0> in test2()
28 vi = (vector int){1, 2, 3, 4}; // CHECK: <i32 1, i32 2, i32 3, i32 4> in test2()
34 vector int vi; in test3() local
35vi++; // CHECK: add <4 x i32> {{.*}} <i32 1, i32 1, i32 1, i32 … in test3()
/external/aac/libFDK/src/arm/
Dfft_rad2_arm.cpp172 FIXP_DBL vr,vi,ur,ui; in dit_fft() local
175 vi = xt2[1]>>1; in dit_fft()
182 xt1[1] = ui+vi; in dit_fft()
185 xt2[1] = ui-vi; in dit_fft()
192 vi = xt2[0]>>1; in dit_fft()
198 xt1[1] = ui-vi; in dit_fft()
201 xt2[1] = ui+vi; in dit_fft()
218 FIXP_DBL vr,vi,ur,ui; in dit_fft() local
220 cplxMultDiv2(&vi, &vr, xt2[1], xt2[0], cs); in dit_fft()
226 xt1[1] = ui+vi; in dit_fft()
[all …]
/external/libvorbis/lib/
Dvorbisenc.c190 static void vorbis_encode_floor_setup(vorbis_info *vi,int s, in vorbis_encode_floor_setup() argument
196 codec_setup_info *ci=vi->codec_setup; in vorbis_encode_floor_setup()
228 static void vorbis_encode_global_psych_setup(vorbis_info *vi,double s, in vorbis_encode_global_psych_setup() argument
233 codec_setup_info *ci=vi->codec_setup; in vorbis_encode_global_psych_setup()
255 static void vorbis_encode_global_stereo(vorbis_info *vi, in vorbis_encode_global_stereo() argument
261 codec_setup_info *ci=vi->codec_setup; in vorbis_encode_global_stereo()
272 g->coupling_pointlimit[0][i]=kHz*1000./vi->rate*ci->blocksizes[0]; in vorbis_encode_global_stereo()
273 g->coupling_pointlimit[1][i]=kHz*1000./vi->rate*ci->blocksizes[1]; in vorbis_encode_global_stereo()
277 g->sliding_lowpass[0][i]=kHz*1000./vi->rate*ci->blocksizes[0]; in vorbis_encode_global_stereo()
278 g->sliding_lowpass[1][i]=kHz*1000./vi->rate*ci->blocksizes[1]; in vorbis_encode_global_stereo()
[all …]
Dmapping0.c58 static void mapping0_pack(vorbis_info *vi,vorbis_info_mapping *vm, in mapping0_pack() argument
81 oggpack_write(opb,info->coupling_mag[i],ilog(vi->channels)); in mapping0_pack()
82 oggpack_write(opb,info->coupling_ang[i],ilog(vi->channels)); in mapping0_pack()
91 for(i=0;i<vi->channels;i++) in mapping0_pack()
102 static vorbis_info_mapping *mapping0_unpack(vorbis_info *vi,oggpack_buffer *opb){ in mapping0_unpack() argument
105 codec_setup_info *ci=vi->codec_setup; in mapping0_unpack()
122 int testM=info->coupling_mag[i]=oggpack_read(opb,ilog(vi->channels)); in mapping0_unpack()
123 int testA=info->coupling_ang[i]=oggpack_read(opb,ilog(vi->channels)); in mapping0_unpack()
128 testM>=vi->channels || in mapping0_unpack()
129 testA>=vi->channels) goto err_out; in mapping0_unpack()
[all …]
Dinfo.c149 int vorbis_info_blocksize(vorbis_info *vi,int zo){ in vorbis_info_blocksize() argument
150 codec_setup_info *ci = vi->codec_setup; in vorbis_info_blocksize()
155 void vorbis_info_init(vorbis_info *vi){ in vorbis_info_init() argument
156 memset(vi,0,sizeof(*vi)); in vorbis_info_init()
157 vi->codec_setup=_ogg_calloc(1,sizeof(codec_setup_info)); in vorbis_info_init()
160 void vorbis_info_clear(vorbis_info *vi){ in vorbis_info_clear() argument
161 codec_setup_info *ci=vi->codec_setup; in vorbis_info_clear()
204 memset(vi,0,sizeof(*vi)); in vorbis_info_clear()
209 static int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer *opb){ in _vorbis_unpack_info() argument
210 codec_setup_info *ci=vi->codec_setup; in _vorbis_unpack_info()
[all …]
Dsynthesis.c29 vorbis_info *vi= vd ? vd->vi : 0; in vorbis_synthesis() local
30 codec_setup_info *ci= vi ? vi->codec_setup : 0; in vorbis_synthesis()
34 if (!vd || !b || !vi || !ci || !opb) { in vorbis_synthesis()
81 vb->pcm=_vorbis_block_alloc(vb,sizeof(*vb->pcm)*vi->channels); in vorbis_synthesis()
82 for(i=0;i<vi->channels;i++) in vorbis_synthesis()
97 vorbis_info *vi=vd->vi; in vorbis_synthesis_trackonly() local
98 codec_setup_info *ci=vi->codec_setup; in vorbis_synthesis_trackonly()
139 long vorbis_packet_blocksize(vorbis_info *vi,ogg_packet *op){ in vorbis_packet_blocksize() argument
140 codec_setup_info *ci=vi->codec_setup; in vorbis_packet_blocksize()
167 int vorbis_synthesis_halfrate(vorbis_info *vi,int flag){ in vorbis_synthesis_halfrate() argument
[all …]
Dblock.c181 static int _vds_shared_init(vorbis_dsp_state *v,vorbis_info *vi,int encp){ in _vds_shared_init() argument
183 codec_setup_info *ci=vi->codec_setup; in _vds_shared_init()
193 v->vi=vi; in _vds_shared_init()
229 vi->rate); in _vds_shared_init()
251 v->pcm=_ogg_malloc(vi->channels*sizeof(*v->pcm)); in _vds_shared_init()
252 v->pcmret=_ogg_malloc(vi->channels*sizeof(*v->pcmret)); in _vds_shared_init()
255 for(i=0;i<vi->channels;i++) in _vds_shared_init()
294 int vorbis_analysis_init(vorbis_dsp_state *v,vorbis_info *vi){ in vorbis_analysis_init() argument
297 if(_vds_shared_init(v,vi,1))return 1; in vorbis_analysis_init()
299 b->psy_g_look=_vp_global_look(vi); in vorbis_analysis_init()
[all …]
Dpsy.c36 vorbis_look_psy_global *_vp_global_look(vorbis_info *vi){ in _vp_global_look() argument
37 codec_setup_info *ci=vi->codec_setup; in _vp_global_look()
41 look->channels=vi->channels; in _vp_global_look()
267 void _vp_psy_init(vorbis_look_psy *p,vorbis_info_psy *vi, in _vp_psy_init() argument
283 p->vi=vi; in _vp_psy_init()
314 for(;lo+vi->noisewindowlomin<i && in _vp_psy_init()
315 toBARK(rate/(2*n)*lo)<(bark-vi->noisewindowlo);lo++); in _vp_psy_init()
317 for(;hi<=n && (hi<i+vi->noisewindowhimin || in _vp_psy_init()
318 toBARK(rate/(2*n)*hi)<(bark+vi->noisewindowhi));hi++); in _vp_psy_init()
327 p->tonecurves=setup_tone_curves(vi->toneatt,rate*.5/n,n, in _vp_psy_init()
[all …]
/external/tremolo/Tremolo/
Dtreminfo.c124 int vorbis_info_blocksize(vorbis_info *vi,int zo){ in vorbis_info_blocksize() argument
125 codec_setup_info *ci = (codec_setup_info *)vi->codec_setup; in vorbis_info_blocksize()
130 void vorbis_info_init(vorbis_info *vi){ in vorbis_info_init() argument
131 memset(vi,0,sizeof(*vi)); in vorbis_info_init()
132 vi->codec_setup=(codec_setup_info *)_ogg_calloc(1,sizeof(codec_setup_info)); in vorbis_info_init()
135 void vorbis_info_clear(vorbis_info *vi){ in vorbis_info_clear() argument
136 codec_setup_info *ci=(codec_setup_info *)vi->codec_setup; in vorbis_info_clear()
174 memset(vi,0,sizeof(*vi)); in vorbis_info_clear()
179 int _vorbis_unpack_info(vorbis_info *vi,oggpack_buffer *opb){ in _vorbis_unpack_info() argument
180 codec_setup_info *ci=(codec_setup_info *)vi->codec_setup; in _vorbis_unpack_info()
[all …]
Ddsp.c49 vorbis_info *vi=v->vi; in vorbis_dsp_restart() local
52 if(!vi)return -1; in vorbis_dsp_restart()
53 ci=vi->codec_setup; in vorbis_dsp_restart()
66 int vorbis_dsp_init(vorbis_dsp_state *v,vorbis_info *vi){ in vorbis_dsp_init() argument
69 codec_setup_info *ci=(codec_setup_info *)vi->codec_setup; in vorbis_dsp_init()
71 v->vi=vi; in vorbis_dsp_init()
73 v->work=(ogg_int32_t **)_ogg_malloc(vi->channels*sizeof(*v->work)); in vorbis_dsp_init()
74 v->mdctright=(ogg_int32_t **)_ogg_malloc(vi->channels*sizeof(*v->mdctright)); in vorbis_dsp_init()
75 for(i=0;i<vi->channels;i++){ in vorbis_dsp_init()
89 vorbis_dsp_state *vorbis_dsp_create(vorbis_info *vi){ in vorbis_dsp_create() argument
[all …]
Dmapping0.c70 int mapping_info_unpack(vorbis_info_mapping *info,vorbis_info *vi, in mapping_info_unpack() argument
73 codec_setup_info *ci=(codec_setup_info *)vi->codec_setup; in mapping_info_unpack()
87 int testM=info->coupling[i].mag=(unsigned char)(oggpack_read(opb,ilog(vi->channels))); in mapping_info_unpack()
88 int testA=info->coupling[i].ang=(unsigned char)(oggpack_read(opb,ilog(vi->channels))); in mapping_info_unpack()
93 testM>=vi->channels || in mapping_info_unpack()
94 testA>=vi->channels) goto err_out; in mapping_info_unpack()
102 info->chmuxlist=_ogg_malloc(sizeof(*info->chmuxlist)*vi->channels); in mapping_info_unpack()
103 for(i=0;i<vi->channels;i++){ in mapping_info_unpack()
126 vorbis_info *vi=vd->vi; in mapping_inverse() local
127 codec_setup_info *ci=(codec_setup_info *)vi->codec_setup; in mapping_inverse()
[all …]
/external/clang/test/SemaCXX/
Daltivec.cpp14 vector int vi; in test_vec_step() local
29 int res10[vec_step(vi) == 4 ? 1 : -1]; in test_vec_step()
57 vector int vi; in test2() local
58 ++vi; in test2()
59 vi++; in test2()
60 --vi; in test2()
61 vi--; in test2()
65 ++vi=vi; // expected-warning {{unsequenced}} in test2()
66 (++vi)[1]=1; in test2()
67 template_f(vi); in test2()
/external/opencv/ml/src/
Dmltree.cpp144 int vi, i; in CV_IMPLEMENT_QSORT_EX() local
243 for( vi = 0; vi < var_count; vi++ ) in CV_IMPLEMENT_QSORT_EX()
245 var_type->data.i[vi] = var_type0->data.ptr[vi] == CV_VAR_CATEGORICAL ? in CV_IMPLEMENT_QSORT_EX()
306 for( vi = 0; vi <= var_count; vi++ ) in CV_IMPLEMENT_QSORT_EX()
315 if( vi < var_count ) // analyze i-th input variable in CV_IMPLEMENT_QSORT_EX()
317 int vi0 = vidx ? vidx[vi] : vi; in CV_IMPLEMENT_QSORT_EX()
318 ci = get_var_type(vi); in CV_IMPLEMENT_QSORT_EX()
338 if( vi < var_count && ci >= 0 || in CV_IMPLEMENT_QSORT_EX()
339 vi == var_count && is_classifier ) // process categorical variable or response in CV_IMPLEMENT_QSORT_EX()
342 int* c_map, *dst = get_cat_var_data( data_root, vi ); in CV_IMPLEMENT_QSORT_EX()
[all …]
/external/llvm/test/CodeGen/ARM/
Dunaligned_load_store_vector.ll11 %vi = bitcast i8* %pi to <8 x i8>*
14 %v1 = load <8 x i8>, <8 x i8>* %vi, align 1
29 %vi = bitcast i8* %pi to <4 x i16>*
32 %v1 = load <4 x i16>, <4 x i16>* %vi, align 1
47 %vi = bitcast i8* %pi to <2 x i32>*
50 %v1 = load <2 x i32>, <2 x i32>* %vi, align 1
65 %vi = bitcast i8* %pi to <2 x float>*
68 %v1 = load <2 x float>, <2 x float>* %vi, align 1
83 %vi = bitcast i8* %pi to <16 x i8>*
86 %v1 = load <16 x i8>, <16 x i8>* %vi, align 1
[all …]
/external/clang/test/Sema/
Daltivec-init.c13 vector int vi; in foo() local
14 vi = (vector int)(1); in foo()
15vi = (vector int)(1, 2); // expected-error {{number of elements must be either one or mat… in foo()
16 vi = (vector int)(1, 2, 3, 4); in foo()
17 vi = (vector int)(1, 2, 3, 4, 5); // expected-warning {{excess elements in vector initializer}} in foo()
18 vi = (vector int){1}; in foo()
19 vi = (vector int){1, 2}; in foo()
20 vi = (vector int){1, 2, 3, 4, 5}; // expected-warning {{excess elements in vector initializer}} in foo()
Dext_vector_casts.c97 int4 vi = i; in splats() local
107 vi = l + vi; // expected-warning {{implicit conversion loses integer precision}} in splats()
108 vi = 1 + vi; in splats()
109 vi = vi + 2.0; // expected-error {{cannot convert between vector values of different size}} in splats()
110 vi = vi + 0xffffffff; // expected-warning {{implicit conversion changes signedness}} in splats()
/external/aac/libFDK/include/
Dfft.h199 FIXP_DBL vr, vi, ur, ui; in fft_8() local
204 vi = y[9]; in fft_8()
206 x[1] = ui + (vi>>1); in fft_8()
208 x[9] = ui - (vi>>1); in fft_8()
212 vi = y[12]; in fft_8()
215 x[5] = ui - (vi>>1); in fft_8()
217 x[13] = ui + (vi>>1); in fft_8()
222 vi = fMultDiv2(ui-ur,W_PiFOURTH); in fft_8()
226 x[3] = (ui>>1) + vi; in fft_8()
228 x[11] = (ui>>1) - vi; in fft_8()
[all …]
/external/opencv3/apps/traincascade/
Dold_ml_tree.cpp169 int vi, i, size; in set_data() local
283 for( vi = 0; vi < var_count; vi++ ) in set_data()
285 char vt = var_type0 ? var_type0->data.ptr[vi] : CV_VAR_ORDERED; in set_data()
286 var_type->data.i[vi] = vt == CV_VAR_CATEGORICAL ? cat_var_count++ : ord_var_count--; in set_data()
388 for( vi = 0; vi <= var_count; vi++ ) in set_data()
397 if( vi < var_count ) // analyze i-th input variable in set_data()
399 int vi0 = vidx ? vidx[vi] : vi; in set_data()
400 ci = get_var_type(vi); in set_data()
420 if( (vi < var_count && ci>=0) || in set_data()
421 (vi == var_count && is_classifier) ) // process categorical variable or response in set_data()
[all …]
Dboost.cpp421 for( int vi = 0; vi < numPrecalcIdx; vi++ ) in subsample_data() local
423 int ci = get_var_type(vi); in subsample_data()
431 …get_ord_var_data( data_root, vi, src_val_buf, src_idx_buf, &src_val, &src_idx, sample_indices_buf … in subsample_data()
434 int num_valid = data_root->get_num_valid(vi); in subsample_data()
440 (size_t)vi*sample_count + data_root->offset); in subsample_data()
453 (size_t)vi*sample_count + root->offset; in subsample_data()
499 for( int vi = 0; vi < var_count; vi++ ) in subsample_data() local
500 root->set_num_valid(vi, count); in subsample_data()
527 for( int vi = 0; vi < var_count; vi++ ) in CvCascadeBoostTrainData() local
529 var_type->data.i[vi] = vi; in CvCascadeBoostTrainData()
[all …]
/external/libvorbis/examples/
Ddecoder_example.c50 vorbis_info vi; /* struct that stores all the static vorbis bitstream in main() local
115 vorbis_info_init(&vi); in main()
129 if(vorbis_synthesis_headerin(&vi,&vc,&op)<0){ in main()
166 result=vorbis_synthesis_headerin(&vi,&vc,&op); in main()
193 fprintf(stderr,"\nBitstream is %d channel, %ldHz\n",vi.channels,vi.rate); in main()
197 convsize=4096/vi.channels; in main()
201 if(vorbis_synthesis_init(&vd,&vi)==0){ /* central decode state */ in main()
246 for(i=0;i<vi.channels;i++){ in main()
265 ptr+=vi.channels; in main()
273 fwrite(convbuffer,2*vi.channels,bout,stdout); in main()
[all …]
/external/libvorbis/test/
Dwrite_read.c38 vorbis_info vi; in write_vorbis_data_or_die() local
52 vorbis_info_init (&vi); in write_vorbis_data_or_die()
54 ret = vorbis_encode_init_vbr (&vi,ch,srate,q); in write_vorbis_data_or_die()
62 vorbis_analysis_init (&vd,&vi); in write_vorbis_data_or_die()
125 vorbis_info_clear (&vi); in write_vorbis_data_or_die()
140 vorbis_info vi; in read_vorbis_data_or_die() local
178 vorbis_info_init (&vi); in read_vorbis_data_or_die()
190 if (vorbis_synthesis_headerin (&vi,&vc,&op) < 0) { in read_vorbis_data_or_die()
213 vorbis_synthesis_headerin (&vi,&vc,&op); in read_vorbis_data_or_die()
229 if (vi.rate != srate) { in read_vorbis_data_or_die()
[all …]

12345678910>>...19