GFPXDiv

Performs the Euclidean division of two elements of the GF(p^d) field.

Syntax

IppStatus ippsGFPXDiv(const IppsGFPXElement *pGFpxElementA, const IppsGFPXElement *pGFpxElementB, IppsGFPXElement *pGFpxElementQ, IppsGFPXElement *pGFpxElementR, IppsGFPXState *pGFpx);

Parameters

pGFpxElementA

Pointer to the context of the dividend element of the GF(p^d) field.

pGFpxElementB

Pointer to the context of the divisor element of the GF(p^d) field.

pGFpxElementQ

Pointer to the context of the resulting quotient element of the GF(p^d) field.

pGFpxElementR

Pointer to the context of the resulting remainder element of the GF(p^d) field.

pGFpx

Pointer to the context of the GF(p^d) field.

Description

This function is declared in the ippcp.h file. For the two given elements of the GF(p^d) field, the function computes the unique pair of the quotient and remainder. The following pseudocode represents this operation: A = B * Q + R.

Return Values

ippStsNoErr

Indicates no error. Any other value indicates an error or warning.

ippStsNullPtrErr

Indicates an error condition if any of the specified pointers is NULL.

ippContextMatchErr

Indicates an error condition if any of the IppsGFPXState or IppsGFPXElement context parameters does not match the operation.

ippDivByZeroErr

Indicates an error condition if the zero divisor is attempted.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.