/external/eigen/test/ |
H A D | basicstuff.cpp | 31 VectorType v1 = VectorType::Random(rows), local 45 v1.coeffRef(r) = x; 46 VERIFY_IS_APPROX(x, v1.coeff(r)); 47 v1(r) = x; 48 VERIFY_IS_APPROX(x, v1(r)); 49 v1[r] = x; 50 VERIFY_IS_APPROX(x, v1[r]); 52 VERIFY_IS_APPROX( v1, v1); 53 VERIFY_IS_NOT_APPROX( v1, [all...] |
H A D | block.cpp | 51 VectorType v1 = VectorType::Random(rows); local 114 VERIFY_IS_EQUAL(v1.template head<2>(), v1.block(0,0,2,1)); 115 VERIFY_IS_EQUAL(v1.template head<2>(), v1.head(2)); 116 VERIFY_IS_EQUAL(v1.template head<2>(), v1.segment(0,2)); 117 VERIFY_IS_EQUAL(v1.template head<2>(), v1.template segment<2>(0)); 119 VERIFY_IS_EQUAL(v1 [all...] |
H A D | geo_quaternion.cpp | 63 v1 = Vector3::Random(), 81 q2 = AngleAxisx(a, v1.normalized()); 102 VERIFY_IS_APPROX(q1*v1,q2*v1); 107 VERIFY_IS_APPROX(q1 * v1, Quaternionx(aa) * v1); 110 // the rotation axis and v1 are almost parallel. 112 && (aa.axis() - v1.normalized()).norm() < 1.99 113 && (aa.axis() + v1.normalized()).norm() < 1.99) 115 VERIFY_IS_NOT_APPROX(q1 * v1, Quaternion 181 v1 = Vector3::Random(); local [all...] |
H A D | householder.cpp | 41 VectorType v1 = VectorType::Random(rows), v2; local 42 v2 = v1; 43 v1.makeHouseholder(essential, beta, alpha); 44 v1.applyHouseholderOnTheLeft(essential,beta,tmp); 45 VERIFY_IS_APPROX(v1.norm(), v2.norm()); 46 if(rows>=2) VERIFY_IS_MUCH_SMALLER_THAN(v1.tail(rows-1).norm(), v1.norm()); 47 v1 = VectorType::Random(rows); 48 v2 = v1; 49 v1 [all...] |
H A D | product_extra.cpp | 33 RowVectorType v1 = RowVectorType::Random(rows), vrres(rows); local 70 VERIFY_IS_APPROX((-m1.adjoint() * s2) * (s1 * v1.transpose()), 71 (-m1.adjoint()*s2).eval() * (s1 * v1.transpose()).eval()); 72 VERIFY_IS_APPROX((-m1.transpose() * s2) * (s1 * v1.adjoint()), 73 (-m1.transpose()*s2).eval() * (s1 * v1.adjoint()).eval()); 74 VERIFY_IS_APPROX((-m1.adjoint() * s2) * (s1 * v1.adjoint()), 75 (-m1.adjoint()*s2).eval() * (s1 * v1.adjoint()).eval()); 77 VERIFY_IS_APPROX((s1 * v1) * (-m1.conjugate() * s2), 78 (s1 * v1).eval() * (-m1.conjugate()*s2).eval()); 79 VERIFY_IS_APPROX((s1 * v1 [all...] |
/external/eigen/test/eigen2/ |
H A D | eigen2_submatrices.cpp | 60 VectorType v1 = VectorType::Random(rows), local 117 VERIFY_IS_APPROX(v1.template start<2>(), v1.block(0,0,2,1)); 118 VERIFY_IS_APPROX(v1.template start<2>(), v1.start(2)); 119 VERIFY_IS_APPROX(v1.template start<2>(), v1.segment(0,2)); 120 VERIFY_IS_APPROX(v1.template start<2>(), v1.template segment<2>(0)); 122 VERIFY_IS_APPROX(v1 [all...] |
H A D | product.h | 52 RowVectorType v1 = RowVectorType::Random(rows), local 84 VERIFY_IS_APPROX(v1, identity*v1); 85 VERIFY_IS_APPROX(v1.transpose(), v1.transpose() * identity); 108 vcres += (m1.transpose() * v1).lazy(); 109 VERIFY_IS_APPROX(vcres, vc2 + m1.transpose() * v1); 111 VERIFY_IS_APPROX(tm1.transpose() * v1, m1.transpose() * v1); 112 VERIFY_IS_APPROX(v1 [all...] |
/external/freetype/src/base/ |
H A D | fttrigon.c | 83 FT_UInt32 v1, v2, k1, k2, hi, lo1, lo2, lo3; local 89 v1 = (FT_UInt32)val >> 16; 95 hi = k1 * v1; 96 lo1 = k1 * v2 + k2 * v1; /* can't overflow */
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
H A D | ImmutableBiMap.java | 39 public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1) { argument 40 return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1)); 43 public static <K, V> ImmutableBiMap<K, V> of(K k1, V v1, K k2, V v2) { argument 44 return new RegularImmutableBiMap<K, V>(ImmutableMap.of(k1, v1, k2, v2)); 48 K k1, V v1, K k2, V v2, K k3, V v3) { 50 k1, v1, k2, v2, k3, v3)); 54 K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) { 56 k1, v1, k2, v2, k3, v3, k4, v4)); 60 K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) { 62 k1, v1, k 47 of( K k1, V v1, K k2, V v2, K k3, V v3) argument 53 of( K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) argument 59 of( K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) argument [all...] |
H A D | ImmutableListMultimap.java | 62 public static <K, V> ImmutableListMultimap<K, V> of(K k1, V v1) { argument 65 builder.put(k1, v1); 72 public static <K, V> ImmutableListMultimap<K, V> of(K k1, V v1, K k2, V v2) { argument 75 builder.put(k1, v1); 84 K k1, V v1, K k2, V v2, K k3, V v3) { 87 builder.put(k1, v1); 97 K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) { 100 builder.put(k1, v1); 111 K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) { 114 builder.put(k1, v1); 83 of( K k1, V v1, K k2, V v2, K k3, V v3) argument 96 of( K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) argument 110 of( K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) argument [all...] |
/external/libunwind/tests/ |
H A D | Gia64-test-stack.c | 58 unw_word_t ip, sp, bsp, v0, v1, v2, v3, n0, n1, n2, n3, cfm, sof, sol, r32; local 82 v0 = v1 = v2 = v3 = 0; 87 || (ret = unw_get_reg (&c, UNW_IA64_GR + reg + 1, &v1)) < 0 98 n0 ? '*' : ' ', v0, n1 ? '*' : ' ', v1, 146 v1 = ((unw_word_t) (i - NSTACKS) << 32) + l; 147 if (v0 != v1) 149 l, v1, v0);
|
/external/mesa3d/src/gallium/auxiliary/draw/ |
H A D | draw_pipe_offset.c | 74 float *v1 = header->v[1]->data[pos]; local 77 /* edge vectors e = v0 - v2, f = v1 - v2 */ 81 float fx = v1[0] - v2[0]; 82 float fy = v1[1] - v2[1]; 83 float fz = v1[2] - v2[2]; 103 v1[2] = CLAMP(v1[2] + zoffset, 0.0f, 1.0f);
|
H A D | draw_pipe_wide_line.c | 68 struct vertex_header *v1 = dup_vert(stage, header->v[0], 1); local 73 float *pos1 = v1->data[pos]; 147 tri.v[2] = v1;
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
H A D | brw_clip_tri.c | 477 struct brw_reg v1 = get_tmp(c); local 494 brw_MOV(p, v1, deref_4f(vt1, hpos_offset)); 502 brw_CMP(p, t2, BRW_CONDITIONAL_L, v1, negate(get_element(v1, 3))); 543 brw_CMP(p, t2, BRW_CONDITIONAL_G, v1, get_element(v1, 3));
|
H A D | brw_clip_unfilled.c | 58 struct brw_reg v1 = byte_offset(c->reg.vertex[1], hpos_offset); local 75 brw_MOV(p, v1n, v1); 277 struct brw_indirect v1 = brw_indirect(1, 0); local 312 brw_MOV(p, get_addr_reg(v1), deref_1uw(v0ptr, 2)); 326 brw_clip_emit_vue(c, v1, 1, 0,
|
/external/mesa3d/src/mesa/swrast/ |
H A D | s_aalinetemp.h | 106 NAME(line)(struct gl_context *ctx, const SWvertex *v0, const SWvertex *v1) argument 117 line.x1 = v1->attrib[FRAG_ATTRIB_WPOS][0]; 118 line.y1 = v1->attrib[FRAG_ATTRIB_WPOS][1]; 138 v0->attrib[FRAG_ATTRIB_WPOS][2], v1->attrib[FRAG_ATTRIB_WPOS][2], line.zPlane); 143 v0->color[RCOMP], v1->color[RCOMP], line.rPlane); 145 v0->color[GCOMP], v1->color[GCOMP], line.gPlane); 147 v0->color[BCOMP], v1->color[BCOMP], line.bPlane); 149 v0->color[ACOMP], v1->color[ACOMP], line.aPlane); 152 constant_plane(v1->color[RCOMP], line.rPlane); 153 constant_plane(v1 [all...] |
H A D | s_lines.c | 164 const SWvertex *v0, const SWvertex *v1) 167 SWvertex *ncv1 = (SWvertex *)v1; 181 /* sum v1 */ 163 _swrast_add_spec_terms_line(struct gl_context *ctx, const SWvertex *v0, const SWvertex *v1) argument
|
/external/mesa3d/src/mesa/swrast_setup/ |
H A D | ss_triangle.c | 56 const SWvertex *v1, 69 const SWvertex *v1, 76 if (ef[e0]) _swrast_Line( ctx, v0, v1 ); 77 if (ef[e1]) _swrast_Line( ctx, v1, v2 ); 79 if (ef[e0]) _swrast_Line( ctx, v0, v1 ); 80 if (ef[e1]) _swrast_Line( ctx, v1, v2 ); 95 const SWvertex *v1, 99 if (ef[e1]) _swrast_Point( ctx, v1 ); 120 SWvertex *v1 = &verts[e1]; local 137 /* save colors/indexes for v0, v1 vertice 63 _swsetup_edge_render_line_tri(struct gl_context *ctx, const GLubyte *ef, GLuint e0, GLuint e1, GLuint e2, const SWvertex *v0, const SWvertex *v1, const SWvertex *v2) argument 89 _swsetup_edge_render_point_tri(struct gl_context *ctx, const GLubyte *ef, GLuint e0, GLuint e1, GLuint e2, const SWvertex *v0, const SWvertex *v1, const SWvertex *v2) argument [all...] |
H A D | ss_tritmp.h | 217 GLuint v1, GLuint v2, GLuint v3 ) 222 GLubyte ef1 = VB->EdgeFlag[v1]; 224 VB->EdgeFlag[v1] = 0; 225 TAG(triangle)( ctx, v0, v1, v3 ); 226 VB->EdgeFlag[v1] = ef1; 228 TAG(triangle)( ctx, v1, v2, v3 ); 232 TAG(triangle)( ctx, v0, v1, v3 ); 233 TAG(triangle)( ctx, v1, v2, v3 ); 216 quadfunc( struct gl_context *ctx, GLuint v0, GLuint v1, GLuint v2, GLuint v3 ) argument
|
/external/mesa3d/src/mesa/tnl/ |
H A D | t_vb_cliptmp.h | 87 const GLfloat dp1 = CLIP_DOTPROD( v1, A, B, C, D ); \ 118 TAG(clip_line)( struct gl_context *ctx, GLuint v0, GLuint v1, GLubyte mask ) argument 152 INTERP_4F( t0, coord[newvert], coord[v0], coord[v1] ); 153 interp( ctx, t0, newvert, v0, v1, GL_FALSE ); 165 if (VB->ClipMask[v1]) { 166 INTERP_4F( t1, coord[newvert], coord[v1], coord[v0_orig] ); 167 interp( ctx, t1, newvert, v1, v0_orig, GL_FALSE ); 170 tnl->Driver.Render.CopyPV( ctx, newvert, v1 ); 172 v1 = newvert; 180 tnl->Driver.Render.ClippedLine( ctx, v0, v1 ); 187 clip_tri( struct gl_context *ctx, GLuint v0, GLuint v1, GLuint v2, GLubyte mask ) argument 266 clip_quad( struct gl_context *ctx, GLuint v0, GLuint v1, GLuint v2, GLuint v3, GLubyte mask ) argument [all...] |
/external/mesa3d/src/mesa/tnl_dd/ |
H A D | t_dd_vertex.h | 57 GLfloat u1, v1; member in struct:__anon28001::__anon28002 66 GLfloat u1, v1, q1; member in struct:__anon28001::__anon28003
|
/external/pdfium/core/src/fxge/fx_freetype/fxft2.5.01/src/base/ |
H A D | fttrigon.c | 83 FT_UInt32 v1, v2, k1, k2, hi, lo1, lo2, lo3; local 89 v1 = (FT_UInt32)val >> 16; 95 hi = k1 * v1; 96 lo1 = k1 * v2 + k2 * v1; /* can't overflow */
|
/external/pixman/pixman/ |
H A D | pixman-mips-dspr2-asm.h | 38 #define v1 $3 macro 114 * can be saved on stack is limitted to 14 (a0-a3, v0-v1 and s0-s7). 120 * SAVE_REGS_ON_STACK 4, v0, v1, s0, s1 121 * RESTORE_REGS_FROM_STACK 4, v0, v1, s0, s1 189 * can be restored from stack is limitted to 14 (a0-a3, v0-v1 and s0-s7). 195 * SAVE_REGS_ON_STACK 4, v0, v1, s0, s1 196 * RESTORE_REGS_FROM_STACK 4, v0, v1, s0, s1
|
/external/skia/src/animator/ |
H A D | SkOperandIterpolator.cpp | 112 SkOperand v1[3], v2[3], v[3], vv[3]; local 115 inter.setKeyFrame(0, 100, iset(v1, 10, 20, 30), 0); 120 SkASSERT(memcmp(v, v1, sizeof(v)) == 0); 124 SkASSERT(memcmp(v, v1, sizeof(v)) == 0); 128 SkASSERT(memcmp(v, v1, sizeof(v)) == 0);
|
/external/skia/src/gpu/gl/ |
H A D | GrGLUniformManager.cpp | 82 void GrGLUniformManager::set2f(UniformHandle u, GrGLfloat v0, GrGLfloat v1) const { 88 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fFSLocation, v0, v1)); 91 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fVSLocation, v0, v1)); 111 void GrGLUniformManager::set3f(UniformHandle u, GrGLfloat v0, GrGLfloat v1, GrGLfloat v2) const { argument 117 GR_GL_CALL(fGpu->glInterface(), Uniform3f(uni.fFSLocation, v0, v1, v2)); 120 GR_GL_CALL(fGpu->glInterface(), Uniform3f(uni.fVSLocation, v0, v1, v2)); 142 GrGLfloat v1, 150 GR_GL_CALL(fGpu->glInterface(), Uniform4f(uni.fFSLocation, v0, v1, v2, v3)); 153 GR_GL_CALL(fGpu->glInterface(), Uniform4f(uni.fVSLocation, v0, v1, v2, v3)); 140 set4f(UniformHandle u, GrGLfloat v0, GrGLfloat v1, GrGLfloat v2, GrGLfloat v3) const argument
|