Ln

Natural logarithm

Supported Technologies

MT, SSE2, Family10h

Synopsis

FwStatus   fwsLn_32f ( const Fw32f * pSrcFw32f * pDstint len );
FwStatus   fwsLn_64f ( const Fw64f * pSrcFw64f * pDstint len );
FwStatus   fwsLn_64f32f ( const Fw64f * pSrcFw32f * pDstint len );
FwStatus   fwsLn_32f_I ( Fw32f * pSrcDstint len );
FwStatus   fwsLn_64f_I ( Fw64f * pSrcDstint len );
FwStatus   fwsLn_16s_Sfs ( const Fw16s * pSrcFw16s * pDstint lenint scaleFactor );
FwStatus   fwsLn_32s_Sfs ( const Fw32s * pSrcFw32s * pDstint lenint scaleFactor );
FwStatus   fwsLn_32s16s_Sfs ( const Fw32s * pSrcFw16s * pDstint lenint scaleFactor );
FwStatus   fwsLn_16s_ISfs ( Fw16s * pSrcDstint lenint scaleFactor );
FwStatus   fwsLn_32s_ISfs ( Fw32s * pSrcDstint lenint 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 the natural logarithm of 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.