mediaLib Library Functions mlibVectorAddSU8Mod(3MLIB)
NAME
mlibVectorAddSU8Mod, mlibVectorAddSU8Sat,
mlibVectorAddSU8CMod, mlibVectorAddSU8CSat,
mlibVectorAddS8Mod, mlibVectorAddS8Sat,
mlibVectorAddS8CMod, mlibVectorAddS8CSat,
mlibVectorAddS16Mod, mlibVectorAddS16Sat,
mlibVectorAddS16CMod, mlibVectorAddS16CSat,
mlibVectorAddS32Mod, mlibVectorAddS32Sat,
mlibVectorAddS32CMod, mlibVectorAddS32CSat - vector
addition to scalar, in place
SYNOPSIS
cc [ flag... ] file... -lmlib [ library... ]
#include
mlibstatus mlibVectorAddSU8Mod(mlibu8 *xz,
const mlibu8 *c, mlibs32 n);
mlibstatus mlibVectorAddSU8Sat(mlibu8 *xz,
const mlibu8 *c, mlibs32 n);
mlibstatus mlibVectorAddSU8CMod(mlibu8 *xz,
const mlibu8 *c, mlibs32 n);
mlibstatus mlibVectorAddSU8CSat(mlibu8 *xz,
const mlibu8 *c, mlibs32 n);
mlibstatus mlibVectorAddS8Mod(mlibs8 *xz,
const mlibs8 *c, mlibs32 n);
mlibstatus mlibVectorAddS8Sat(mlibs8 *xz,
const mlibs8 *c, mlibs32 n);
mlibstatus mlibVectorAddS8CMod(mlibs8 *xz,
const mlibs8 *c, mlibs32 n);
mlibstatus mlibVectorAddS8CSat(mlibs8 *xz,
const mlibs8 *c, mlibs32 n);
mlibstatus mlibVectorAddS16Mod(mlibs16 *xz,
const mlibs16 *c, mlibs32 n);
SunOS 5.11 Last change: 2 Mar 2007 1
mediaLib Library Functions mlibVectorAddSU8Mod(3MLIB)
mlibstatus mlibVectorAddS16Sat(mlibs16 *xz,
const mlibs16 *c, mlibs32 n);
mlibstatus mlibVectorAddS16CMod(mlibs16 *xz,
const mlibs16 *c, mlibs32 n);
mlibstatus mlibVectorAddS16CSat(mlibs16 *xz,
const mlibs16 *c, mlibs32 n);
mlibstatus mlibVectorAddS32Mod(mlibs32 *xz,
const mlibs32 *c, mlibs32 n);
mlibstatus mlibVectorAddS32Sat(mlibs32 *xz,
const mlibs32 *c, mlibs32 n);
mlibstatus mlibVectorAddS32CMod(mlibs32 *xz,
const mlibs32 *c, mlibs32 n);
mlibstatus mlibVectorAddS32CSat(mlibs32 *xz,
const mlibs32 *c, mlibs32 n);
DESCRIPTION
Each of these functions performs an in-place addition of a
scalar to a vector.
For real data, the following equation is used:
xz[i] = c[0] ] xz[i]
where i = 0, 1, ..., (n - 1).
For complex data, the following equation is used:
xz[2*i] = c[0] ] xz[2*i]
xz[2*i ] 1] = c[1] ] xz[2*i ] 1]
where i = 0, 1, ..., (n - 1).
SunOS 5.11 Last change: 2 Mar 2007 2
mediaLib Library Functions mlibVectorAddSU8Mod(3MLIB)
PARAMETERS
Each of the functions takes the following arguments:
xz Pointer to the first element of the source and desti-
nation vector.
c Pointer to the source scalar. When the function is
used with complex data types, c[0] contains the scalar
for the real part, and c[1] contains the scalar for
the imaginary part.
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
mlibVectorAddSU8U8Mod(3MLIB), attributes(5)
SunOS 5.11 Last change: 2 Mar 2007 3
|