• Home
  • Raw
  • Download

Lines Matching refs:pGFEx

60                         gsModEngine* pGFEx)  in gfpxPolyDiv()  argument
62 if( GFP_IS_BASIC(pGFEx) ) in gfpxPolyDiv()
66 int elemLen = GFP_FELEN(pGFEx); in gfpxPolyDiv()
67 gsModEngine* pGroundGFE = GFP_PARENT(pGFEx); in gfpxPolyDiv()
70 int degA = degree(pA, pGFEx); in gfpxPolyDiv()
71 int degB = degree(pB, pGFEx); in gfpxPolyDiv()
81 cpGFpxMul_GFE(pQ, pA, pR, pGFEx); in gfpxPolyDiv()
135 …NK_T* gfpxGeneratorDiv(BNU_CHUNK_T* pQ, BNU_CHUNK_T* pR, const BNU_CHUNK_T* pB, gsModEngine* pGFEx) in gfpxGeneratorDiv() argument
137 if( GFP_IS_BASIC(pGFEx) ) in gfpxGeneratorDiv()
141 int elemLen = GFP_FELEN(pGFEx); in gfpxGeneratorDiv()
143 gsModEngine* pGroundGFE = GFP_PARENT(pGFEx); in gfpxGeneratorDiv()
152 int degB = degree(pB, pGFEx); in gfpxGeneratorDiv()
157 cpGFpElementCopy(pR, GFP_MODULUS(pGFEx), elemLen); in gfpxGeneratorDiv()
165 ptr = GFPX_IDX_ELEMENT(pR, GFP_EXTDEGREE(pGFEx)-degB+i, termLen); in gfpxGeneratorDiv()
169 gfpxPolyDiv(pQ, pR, pR, pB, pGFEx); in gfpxGeneratorDiv()
171 cpGFpElementCopy(GFPX_IDX_ELEMENT(pQ, GFP_EXTDEGREE(pGFEx)-degB, termLen), pInvB, termLen); in gfpxGeneratorDiv()
178 BNU_CHUNK_T* cpGFpxInv(BNU_CHUNK_T* pR, const BNU_CHUNK_T* pA, gsModEngine* pGFEx) in cpGFpxInv() argument
180 if( GFP_IS_BASIC(pGFEx) ) in cpGFpxInv()
181 return cpGFpInv(pR, pA, pGFEx); in cpGFpxInv()
183 if(0==degree(pA, pGFEx)) { in cpGFpxInv()
184 gsModEngine* pGroundGFE = GFP_PARENT(pGFEx); in cpGFpxInv()
190 cpGFpElementCopyPadd(pR, GFP_FELEN(pGFEx), tmpR, GFP_FELEN(pGroundGFE)); in cpGFpxInv()
196 int elemLen = GFP_FELEN(pGFEx); in cpGFpxInv()
197 gsModEngine* pGroundGFE = GFP_PARENT(pGFEx); in cpGFpxInv()
198 gsModEngine* pBasicGFE = cpGFpBasic(pGFEx); in cpGFpxInv()
201 int pelemLen = GFP_PELEN(pGFEx); in cpGFpxInv()
202 BNU_CHUNK_T* lastrem = cpGFpGetPool(pxVars, pGFEx); in cpGFpxInv()
213 gfpxGeneratorDiv(quo, rem, pA, pGFEx); in cpGFpxInv()
214 cpGFpxNeg(aux, quo, pGFEx); in cpGFpxInv()
216 while(degree(rem, pGFEx) > 0) { in cpGFpxInv()
217 gfpxPolyDiv(quo, temp, lastrem, rem, pGFEx); in cpGFpxInv()
221 GFP_METHOD(pGFEx)->neg(quo, quo, pGFEx); in cpGFpxInv()
222 GFP_METHOD(pGFEx)->mul(temp, quo, aux, pGFEx); in cpGFpxInv()
223 GFP_METHOD(pGFEx)->add(temp, lastaux, temp, pGFEx); in cpGFpxInv()
228 cpGFpReleasePool(pxVars, pGFEx); in cpGFpxInv()
237 cpGFpxMul_GFE(pR, aux, invRem, pGFEx); in cpGFpxInv()
242 cpGFpReleasePool(pxVars, pGFEx); in cpGFpxInv()