Home
last modified time | relevance | path

Searched refs:poly (Results 1 – 25 of 32) sorted by relevance

12

/external/eigen/unsupported/Eigen/src/Polynomials/
DPolynomialUtils.h28 T poly_eval_horner( const Polynomials& poly, const T& x ) in poly_eval_horner() argument
30 T val=poly[poly.size()-1]; in poly_eval_horner()
31 for(DenseIndex i=poly.size()-2; i>=0; --i ){ in poly_eval_horner()
32 val = val*x + poly[i]; } in poly_eval_horner()
46 T poly_eval( const Polynomials& poly, const T& x ) in poly_eval() argument
51 return poly_eval_horner( poly, x ); } in poly_eval()
54 T val=poly[0]; in poly_eval()
56 for( DenseIndex i=1; i<poly.size(); ++i ){ in poly_eval()
57 val = val*inv_x + poly[i]; } in poly_eval()
59 return std::pow(x,(T)(poly.size()-1)) * val; in poly_eval()
[all …]
DPolynomialSolver.h43 inline void setPolynomial( const OtherPolynomial& poly ){ in setPolynomial() argument
44 m_roots.resize(poly.size()); } in setPolynomial()
48 inline PolynomialSolverBase( const OtherPolynomial& poly ){ in PolynomialSolverBase() argument
49 setPolynomial( poly() ); } in PolynomialSolverBase()
342 void compute( const OtherPolynomial& poly ) in compute() argument
344 assert( Scalar(0) != poly[poly.size()-1] ); in compute()
345 internal::companion<Scalar,_Deg> companion( poly ); in compute()
353 inline PolynomialSolver( const OtherPolynomial& poly ){ in PolynomialSolver() argument
354 compute( poly ); } in PolynomialSolver()
374 void compute( const OtherPolynomial& poly ) in EIGEN_POLYNOMIAL_SOLVER_BASE_INHERITED_TYPES()
[all …]
DCompanion.h75 void setPolynomial( const VectorType& poly ) in setPolynomial() argument
77 const Index deg = poly.size()-1; in setPolynomial()
78 m_monic = -1/poly[deg] * poly.head(deg); in setPolynomial()
84 companion( const VectorType& poly ){ in companion() argument
85 setPolynomial( poly ); } in companion()
/external/srtp/test/
Dlfsr.c120 weight(uint32_t poly) { in weight() argument
124 wt += octet_weight[poly & 0xff]; in weight()
125 wt += octet_weight[(poly >> 8) & 0xff]; in weight()
126 wt += octet_weight[(poly >> 16) & 0xff]; in weight()
127 wt += octet_weight[(poly >> 24)]; in weight()
137 period(uint32_t poly) { in period() argument
149 x = (x >> 1) ^ poly; in period()
176 weight_distribution2(uint32_t poly, int *A) { in weight_distribution2() argument
194 x = (x >> 1) ^ poly; in weight_distribution2()
217 weight_distribution(uint32_t poly, int *A) { in weight_distribution() argument
[all …]
/external/openssl/crypto/ec/
Dec2_smpl.c164 group->poly[0] = 0; in ec_GF2m_simple_group_clear_finish()
165 group->poly[1] = 0; in ec_GF2m_simple_group_clear_finish()
166 group->poly[2] = 0; in ec_GF2m_simple_group_clear_finish()
167 group->poly[3] = 0; in ec_GF2m_simple_group_clear_finish()
168 group->poly[4] = 0; in ec_GF2m_simple_group_clear_finish()
169 group->poly[5] = -1; in ec_GF2m_simple_group_clear_finish()
182 dest->poly[0] = src->poly[0]; in ec_GF2m_simple_group_copy()
183 dest->poly[1] = src->poly[1]; in ec_GF2m_simple_group_copy()
184 dest->poly[2] = src->poly[2]; in ec_GF2m_simple_group_copy()
185 dest->poly[3] = src->poly[3]; in ec_GF2m_simple_group_copy()
[all …]
Dec_asn1.c75 while (group->poly[i] != 0) in EC_GROUP_get_basis_type()
93 || !((group->poly[0] != 0) && (group->poly[1] != 0) && (group->poly[2] == 0))) in EC_GROUP_get_trinomial_basis()
100 *k = group->poly[1]; in EC_GROUP_get_trinomial_basis()
111 …|| !((group->poly[0] != 0) && (group->poly[1] != 0) && (group->poly[2] != 0) && (group->poly[3] !=… in EC_GROUP_get_pentanomial_basis()
118 *k1 = group->poly[3]; in EC_GROUP_get_pentanomial_basis()
120 *k2 = group->poly[2]; in EC_GROUP_get_pentanomial_basis()
122 *k3 = group->poly[1]; in EC_GROUP_get_pentanomial_basis()
Dec2_oct.c117 if (!BN_GF2m_mod_arr(x, x_, group->poly)) goto err; in ec_GF2m_simple_set_compressed_coordinates()
120 if (!BN_GF2m_mod_sqrt_arr(y, &group->b, group->poly, ctx)) goto err; in ec_GF2m_simple_set_compressed_coordinates()
128 if (!BN_GF2m_mod_solve_quad_arr(z, tmp, group->poly, ctx)) in ec_GF2m_simple_set_compressed_coordinates()
/external/dropbear/libtomcrypt/src/mac/pmac/
Dpmac_init.c48 int poly, x, y, m, err; in pmac_init() local
61 for (poly = 0; poly < (int)(sizeof(polys)/sizeof(polys[0])); poly++) { in pmac_init()
62 if (polys[poly].len == pmac->block_len) { in pmac_init()
66 if (polys[poly].len != pmac->block_len) { in pmac_init()
105 pmac->Ls[x][y] ^= polys[poly].poly_mul[y]; in pmac_init()
121 pmac->Lr[x] ^= polys[poly].poly_div[x]; in pmac_init()
/external/dropbear/libtomcrypt/src/encauth/ocb/
Docb_init.c50 int poly, x, y, m, err; in ocb_init() local
63 for (poly = 0; poly < (int)(sizeof(polys)/sizeof(polys[0])); poly++) { in ocb_init()
64 if (polys[poly].len == ocb->block_len) { in ocb_init()
68 if (polys[poly].len != ocb->block_len) { in ocb_init()
102 ocb->Ls[x][y] ^= polys[poly].poly_mul[y]; in ocb_init()
118 ocb->Lr[x] ^= polys[poly].poly_div[x]; in ocb_init()
/external/clang/utils/TableGen/
DNeonEmitter.cpp291 static char ClassifyType(StringRef ty, bool &quad, bool &poly, bool &usgn) { in ClassifyType() argument
302 poly = true; in ClassifyType()
318 static char ModType(const char mod, char type, bool &quad, bool &poly, in ModType() argument
322 if (poly) { in ModType()
323 poly = false; in ModType()
329 poly = false; in ModType()
335 poly = false; in ModType()
396 bool poly = false; in TypeString() local
408 char type = ClassifyType(typestr, quad, poly, usgn); in TypeString()
411 type = ModType(mod, type, quad, poly, usgn, scal, cnst, pntr); in TypeString()
[all …]
/external/llvm/test/CodeGen/XCore/
Dmisc-intrinsics.ll19 define i32 @crc32(i32 %crc, i32 %data, i32 %poly) {
22 %result = call i32 @llvm.xcore.crc32(i32 %crc, i32 %data, i32 %poly)
26 define %0 @crc8(i32 %crc, i32 %data, i32 %poly) {
29 %result = call %0 @llvm.xcore.crc8(i32 %crc, i32 %data, i32 %poly)
/external/quake/quake/src/QW/client/
Dgl_rsurf.c1491 glpoly_t *poly; in BuildSurfaceDisplayList() local
1501 poly = Hunk_Alloc (sizeof(glpoly_t) + (lnumverts-4) * VERTEXSIZE*sizeof(float)); in BuildSurfaceDisplayList()
1502 poly->next = fa->polys; in BuildSurfaceDisplayList()
1503 poly->flags = fa->flags; in BuildSurfaceDisplayList()
1504 fa->polys = poly; in BuildSurfaceDisplayList()
1505 poly->numverts = lnumverts; in BuildSurfaceDisplayList()
1527 VectorCopy (vec, poly->verts[i]); in BuildSurfaceDisplayList()
1528 poly->verts[i][3] = s; in BuildSurfaceDisplayList()
1529 poly->verts[i][4] = t; in BuildSurfaceDisplayList()
1546 poly->verts[i][5] = s; in BuildSurfaceDisplayList()
[all …]
Dgl_warp.c64 glpoly_t *poly; in SubdividePolygon() local
123 poly = Hunk_Alloc (sizeof(glpoly_t) + (numverts-4) * VERTEXSIZE*sizeof(float)); in SubdividePolygon()
124 poly->next = warpface->polys; in SubdividePolygon()
125 warpface->polys = poly; in SubdividePolygon()
126 poly->numverts = numverts; in SubdividePolygon()
129 VectorCopy (verts, poly->verts[i]); in SubdividePolygon()
132 poly->verts[i][3] = s; in SubdividePolygon()
133 poly->verts[i][4] = t; in SubdividePolygon()
/external/quake/quake/src/WinQuake/
Dgl_rsurf.cpp1565 glpoly_t *poly; in BuildSurfaceDisplayList() local
1575 poly = (glpoly_t*) Hunk_Alloc (sizeof(glpoly_t) + (lnumverts-4) * VERTEXSIZE*sizeof(float)); in BuildSurfaceDisplayList()
1576 poly->next = fa->polys; in BuildSurfaceDisplayList()
1577 poly->flags = fa->flags; in BuildSurfaceDisplayList()
1578 fa->polys = poly; in BuildSurfaceDisplayList()
1579 poly->numverts = lnumverts; in BuildSurfaceDisplayList()
1601 VectorCopy (vec, poly->verts[i]); in BuildSurfaceDisplayList()
1602 poly->verts[i][3] = s; in BuildSurfaceDisplayList()
1603 poly->verts[i][4] = t; in BuildSurfaceDisplayList()
1620 poly->verts[i][5] = s; in BuildSurfaceDisplayList()
[all …]
Dgl_warp.cpp64 glpoly_t *poly; in SubdividePolygon() local
123 poly = (glpoly_t*) Hunk_Alloc (sizeof(glpoly_t) + (numverts-4) * VERTEXSIZE*sizeof(float)); in SubdividePolygon()
124 poly->next = warpface->polys; in SubdividePolygon()
125 warpface->polys = poly; in SubdividePolygon()
126 poly->numverts = numverts; in SubdividePolygon()
129 VectorCopy (verts, poly->verts[i]); in SubdividePolygon()
132 poly->verts[i][3] = s; in SubdividePolygon()
133 poly->verts[i][4] = t; in SubdividePolygon()
/external/skia/src/core/
DSkMatrix.cpp1352 static inline bool poly_to_point(SkPoint* pt, const SkPoint poly[], int count) { in poly_to_point() argument
1358 pt1.fX = poly[1].fX - poly[0].fX; in poly_to_point()
1359 pt1.fY = poly[1].fY - poly[0].fY; in poly_to_point()
1368 pt2.fX = poly[0].fY - poly[2].fY; in poly_to_point()
1369 pt2.fY = poly[2].fX - poly[0].fX; in poly_to_point()
1372 pt2.fX = poly[0].fY - poly[3].fY; in poly_to_point()
1373 pt2.fY = poly[3].fX - poly[0].fX; in poly_to_point()
1491 static inline bool poly_to_point(SkPoint* pt, const SkPoint poly[], int count) { in poly_to_point() argument
1496 pt1.fX = poly[1].fX - poly[0].fX; in poly_to_point()
1497 pt1.fY = poly[1].fY - poly[0].fY; in poly_to_point()
[all …]
/external/qemu/distrib/zlib-1.2.3/
Dcrc32.c110 unsigned long poly; /* polynomial exclusive-or pattern */ in make_crc_table() local
122 poly = 0UL; in make_crc_table()
124 poly |= 1UL << (31 - p[n]); in make_crc_table()
130 c = c & 1 ? poly ^ (c >> 1) : c >> 1; in make_crc_table()
/external/webkit/Source/WebCore/platform/graphics/wince/
DPlatformPathWinCE.cpp204 static void addArcPoint(PathPolygon& poly, const PathPoint& center, const PathPoint& radius, double… in addArcPoint() argument
209 if (poly.isEmpty() || poly.last() != p) in addArcPoint()
210 poly.append(p); in addArcPoint()
213 static void addArcPoints(PathPolygon& poly, const PlatformPathElement::ArcTo& data) in addArcPoints() argument
215 const PathPoint& startPoint = poly.last(); in addArcPoints()
229 addArcPoint(poly, data.m_center, data.m_radius, curAngle); in addArcPoints()
231 if (poly.isEmpty() || poly.last() != data.m_end) in addArcPoints()
232 poly.append(data.m_end); in addArcPoints()
/external/zlib/src/
Dcrc32.c94 z_crc_t poly; /* polynomial exclusive-or pattern */ in make_crc_table() local
106 poly = 0; in make_crc_table()
108 poly |= (z_crc_t)1 << (31 - p[n]); in make_crc_table()
114 c = c & 1 ? poly ^ (c >> 1) : c >> 1; in make_crc_table()
/external/eigen/unsupported/Eigen/
DPolynomials50 void roots_to_monicPolynomial( const RootVector& rv, Polynomial& poly )
61 T poly_eval( const Polynomials& poly, const T& x )
74 Real cauchy_max_bound( const Polynomial& poly )
84 Real cauchy_min_bound( const Polynomial& poly )
/external/clang/test/SemaCXX/
Ddynamic-cast.cpp64 void poly() in poly() function
/external/webkit/Tools/iExploder/iexploder-1.7.2/src/html-attrs/
Dgtkhtml40 poly
/external/dropbear/libtomcrypt/src/encauth/gcm/
Dgcm_gf_mult.c74 static const unsigned char poly[] = { 0x00, 0xE1 }; variable
98 V[0] ^= poly[z]; in gcm_gf_mult()
/external/webkit/Tools/iExploder/iexploder-1.7.2/src/html-values/
Dwebkit63 poly
/external/clang/test/Sema/
Dflexible-array-init.c47 struct polygon poly = { variable

12