mediaLib Library Functions mlibVectorMulSAddU8Mod(3MLIB)
NAME
mlibVectorMulSAddU8Mod, mlibVectorMulSAddU8Sat,
mlibVectorMulSAddU8CMod, mlibVectorMulSAddU8CSat,
mlibVectorMulSAddS8Mod, mlibVectorMulSAddS8Sat,
mlibVectorMulSAddS8CMod, mlibVectorMulSAddS8CSat,
mlibVectorMulSAddS16Mod, mlibVectorMulSAddS16Sat,
mlibVectorMulSAddS16CMod, mlibVectorMulSAddS16CSat,
mlibVectorMulSAddS32Mod, mlibVectorMulSAddS32Sat,
mlibVectorMulSAddS32CMod, mlibVectorMulSAddS32CSat -
vector multiplication by scalar plus addition, in place
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibVectorMulSAddU8Mod(mlibu8 *xz,
const mlibu8 *y, const mlibu8 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddU8Sat(mlibu8 *xz,
const mlibu8 *y, const mlibu8 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddU8CMod(mlibu8 *xz,
const mlibu8 *y, const mlibu8 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddU8CSat(mlibu8 *xz,
const mlibu8 *y, const mlibu8 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddS8Mod(mlibs8 *xz,
const mlibs8 *y, const mlibs8 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddS8Sat(mlibs8 *xz,
const mlibs8 *y, const mlibs8 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddS8CMod(mlibs8 *xz,
const mlibs8 *y, const mlibs8 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddS8CSat(mlibs8 *xz,
const mlibs8 *y, const mlibs8 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddS16Mod(mlibs16 *xz,
const mlibs16 *y, const mlibs16 *c, mlibs32 n);
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibVectorMulSAddU8Mod(3MLIB)
mlibstatus mlibVectorMulSAddS16Sat(mlibs16 *xz,
const mlibs16 *y, const mlibs16 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddS16CMod(mlibs16 *xz,
const mlibs16 *y, const mlibs16 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddS16CSat(mlibs16 *xz,
const mlibs16 *y, const mlibs16 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddS32Mod(mlibs32 *xz,
const mlibs32 *y, const mlibs32 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddS32Sat(mlibs32 *xz,
const mlibs32 *y, const mlibs32 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddS32CMod(mlibs32 *xz,
const mlibs32 *y, const mlibs32 *c, mlibs32 n);
mlibstatus mlibVectorMulSAddS32CSat(mlibs32 *xz,
const mlibs32 *y, const mlibs32 *c, mlibs32 n);
DESCRIPTION
Each of these functions computes an in-place multiplication
of a vector by a scalar and adds the result to another vec-
tor.
For real data, the following equation is used:
xz[i] = xz[i] ] y[i]*c[0]
where i = 0, 1, ..., (n - 1).
For complex data, the following equation is used:
xz[2*i] = xz[2*i] ] y[2*i]*c[0] - y[2*i ] 1]*c[1]
xz[2*i ] 1] = xz[2*i ] 1] ] y[2*i]*c[1] ] y[2*i ] 1]*c[0]
where i = 0, 1, ..., (n - 1).
SunOS 5.11 Last change: 2 Mar 2007 2
mediaLib Library Functions mlibVectorMulSAddU8Mod(3MLIB)
PARAMETERS
Each of the functions takes the following arguments:
xz Pointer to the first element of the first source and
destination vector.
y Pointer to the first element of the second source vec-
tor.
c Pointer to the source scalar. When the function is
used with complex data types, c[0] contains the real
part of the scalar, and c[1] contains the imaginary
part of the scalar.
n Number of elements in the vectors.
RETURN VALUES
Each of the functions returns MLIBSUCES if successful.
Otherwise it returns MLIBFAILURE.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
Interface Stability Committed
MT-Level MT-Safe
SEE ALSO
mlibVectorMulSAddU8U8Mod(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 3
|