Exp

Raise base e to a specified power

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwsExp_32f ( const Fw32f * pSrc, Fw32f * pDst, int len );
FwStatus   fwsExp_64f ( const Fw64f * pSrc, Fw64f * pDst, int len );
FwStatus   fwsExp_32f64f ( const Fw32f * pSrc, Fw64f * pDst, int len );
FwStatus   fwsExp_32f_I ( Fw32f * pSrcDst, int len );
FwStatus   fwsExp_64f_I ( Fw64f * pSrcDst, int len );
FwStatus   fwsExp_16s_Sfs ( const Fw16s * pSrc, Fw16s * pDst, int len, int scaleFactor );
FwStatus   fwsExp_32s_Sfs ( const Fw32s * pSrc, Fw32s * pDst, int len, int scaleFactor );
FwStatus   fwsExp_64s_Sfs ( const Fw64s * pSrc, Fw64s * pDst, int len, int scaleFactor );
FwStatus   fwsExp_16s_ISfs ( Fw16s * pSrcDst, int len, int scaleFactor );
FwStatus   fwsExp_32s_ISfs ( Fw32s * pSrcDst, int len, int scaleFactor );
FwStatus   fwsExp_64s_ISfs ( Fw64s * pSrcDst, int len, int scaleFactor );

Parameters

len   Specifies the number of elements in a buffer.
pDst   Pointer to a destination buffer.
pSrc   Pointer to a source buffer.
pSrcDst   Pointer to a buffer that is both the source and destination.
scaleFactor   Specifies an integer scaling factor for the Sfs operation. The returned result is multiplied by 2^(-scaleFactor).

Description

These functions step through vector elements in a source buffer and calculate e to the power specified by each element.

Results can be written to a destination buffer or written back to the source buffer.

The 16-bit and 32-bit signed versions perform an integer scaling operation before writing the results.

These functions are the inverses of the Ln functions.