Lines Matching refs:pGroundGFE

58    gsEngine* pGroundGFE = GFP_PARENT(pGFEx);  in cpGFpxMul_p3_binom()  local
59 int groundElemLen = GFP_FELEN(pGroundGFE); in cpGFpxMul_p3_binom()
61 mod_mul mulF = GFP_METHOD(pGroundGFE)->mul; in cpGFpxMul_p3_binom()
62 mod_add addF = GFP_METHOD(pGroundGFE)->add; in cpGFpxMul_p3_binom()
63 mod_sub subF = GFP_METHOD(pGroundGFE)->sub; in cpGFpxMul_p3_binom()
77 BNU_CHUNK_T* t0 = cpGFpGetPool(6, pGroundGFE); in cpGFpxMul_p3_binom()
85 addF(u0 ,pA0, pA1, pGroundGFE); /* u0 = a[0]+a[1] */ in cpGFpxMul_p3_binom()
86 addF(t0 ,pB0, pB1, pGroundGFE); /* t0 = b[0]+b[1] */ in cpGFpxMul_p3_binom()
87 mulF(u0, u0, t0, pGroundGFE); /* u0 = (a[0]+a[1])*(b[0]+b[1]) */ in cpGFpxMul_p3_binom()
88 mulF(t0, pA0, pB0, pGroundGFE); /* t0 = a[0]*b[0] */ in cpGFpxMul_p3_binom()
90 addF(u1 ,pA1, pA2, pGroundGFE); /* u1 = a[1]+a[2] */ in cpGFpxMul_p3_binom()
91 addF(t1 ,pB1, pB2, pGroundGFE); /* t1 = b[1]+b[2] */ in cpGFpxMul_p3_binom()
92 mulF(u1, u1, t1, pGroundGFE); /* u1 = (a[1]+a[2])*(b[1]+b[2]) */ in cpGFpxMul_p3_binom()
93 mulF(t1, pA1, pB1, pGroundGFE); /* t1 = a[1]*b[1] */ in cpGFpxMul_p3_binom()
95 addF(u2 ,pA2, pA0, pGroundGFE); /* u2 = a[2]+a[0] */ in cpGFpxMul_p3_binom()
96 addF(t2 ,pB2, pB0, pGroundGFE); /* t2 = b[2]+b[0] */ in cpGFpxMul_p3_binom()
97 mulF(u2, u2, t2, pGroundGFE); /* u2 = (a[2]+a[0])*(b[2]+b[0]) */ in cpGFpxMul_p3_binom()
98 mulF(t2, pA2, pB2, pGroundGFE); /* t2 = a[2]*b[2] */ in cpGFpxMul_p3_binom()
100 subF(u0, u0, t0, pGroundGFE); /* u0 = a[0]*b[1]+a[1]*b[0] */ in cpGFpxMul_p3_binom()
101 subF(u0, u0, t1, pGroundGFE); in cpGFpxMul_p3_binom()
102 subF(u1, u1, t1, pGroundGFE); /* u1 = a[1]*b[2]+a[2]*b[1] */ in cpGFpxMul_p3_binom()
103 subF(u1, u1, t2, pGroundGFE); in cpGFpxMul_p3_binom()
104 subF(u2, u2, t2, pGroundGFE); /* u2 = a[2]*b[0]+a[0]*b[2] */ in cpGFpxMul_p3_binom()
105 subF(u2, u2, t0, pGroundGFE); in cpGFpxMul_p3_binom()
110 subF(pR0, t0, u1, pGroundGFE); /* r[0] = a[0]*b[0] - (a[2]*b[1]+a[1]*b[2])*beta */ in cpGFpxMul_p3_binom()
111 subF(pR1, u0, t2, pGroundGFE); /* r[1] = a[1]*b[0] + a[0]*b[1] - a[2]*b[2]*beta */ in cpGFpxMul_p3_binom()
113 addF(pR2, u2, t1, pGroundGFE); /* r[2] = a[2]*b[0] + a[1]*b[1] + a[0]*b[2] */ in cpGFpxMul_p3_binom()
115 cpGFpReleasePool(6, pGroundGFE); in cpGFpxMul_p3_binom()
124 gsEngine* pGroundGFE = GFP_PARENT(pGFEx); in cpGFpxSqr_p3_binom() local
125 int groundElemLen = GFP_FELEN(pGroundGFE); in cpGFpxSqr_p3_binom()
127 mod_mul mulF = GFP_METHOD(pGroundGFE)->mul; in cpGFpxSqr_p3_binom()
128 mod_sqr sqrF = GFP_METHOD(pGroundGFE)->sqr; in cpGFpxSqr_p3_binom()
129 mod_add addF = GFP_METHOD(pGroundGFE)->add; in cpGFpxSqr_p3_binom()
130 mod_sub subF = GFP_METHOD(pGroundGFE)->sub; in cpGFpxSqr_p3_binom()
140 BNU_CHUNK_T* s0 = cpGFpGetPool(5, pGroundGFE); in cpGFpxSqr_p3_binom()
147 addF(s2, pA0, pA2, pGroundGFE); in cpGFpxSqr_p3_binom()
148 subF(s2, s2, pA1, pGroundGFE); in cpGFpxSqr_p3_binom()
149 sqrF(s2, s2, pGroundGFE); in cpGFpxSqr_p3_binom()
150 sqrF(s0, pA0, pGroundGFE); in cpGFpxSqr_p3_binom()
151 sqrF(s4, pA2, pGroundGFE); in cpGFpxSqr_p3_binom()
152 mulF(s1, pA0, pA1, pGroundGFE); in cpGFpxSqr_p3_binom()
153 mulF(s3, pA1, pA2, pGroundGFE); in cpGFpxSqr_p3_binom()
154 addF(s1, s1, s1, pGroundGFE); in cpGFpxSqr_p3_binom()
155 addF(s3, s3, s3, pGroundGFE); in cpGFpxSqr_p3_binom()
157 addF(pR2, s1, s2, pGroundGFE); in cpGFpxSqr_p3_binom()
158 addF(pR2, pR2, s3, pGroundGFE); in cpGFpxSqr_p3_binom()
159 subF(pR2, pR2, s0, pGroundGFE); in cpGFpxSqr_p3_binom()
160 subF(pR2, pR2, s4, pGroundGFE); in cpGFpxSqr_p3_binom()
163 subF(pR1, s1, s4, pGroundGFE); in cpGFpxSqr_p3_binom()
166 subF(pR0, s0, s3, pGroundGFE); in cpGFpxSqr_p3_binom()
168 cpGFpReleasePool(5, pGroundGFE); in cpGFpxSqr_p3_binom()