1mlib_VectorMulS_U8_U8_Mod(3mMeLdIiBa)Lib Library Funcmtliiobn_sVectorMulS_U8_U8_Mod(3MLIB)
2
3
4

NAME

6       mlib_VectorMulS_U8_U8_Mod,    mlib_VectorMulS_U8_U8_Sat,   mlib_Vector‐
7       MulS_U8C_U8C_Mod,       mlib_VectorMulS_U8C_U8C_Sat,       mlib_Vector‐
8       MulS_S8_S8_Mod, mlib_VectorMulS_S8_S8_Sat, mlib_VectorMulS_S8C_S8C_Mod,
9       mlib_VectorMulS_S8C_S8C_Sat,  mlib_VectorMulS_S16_U8_Mod,  mlib_Vector‐
10       MulS_S16_U8_Sat,        mlib_VectorMulS_S16_S8_Mod,        mlib_Vector‐
11       MulS_S16_S8_Sat,       mlib_VectorMulS_S16_S16_Mod,        mlib_Vector‐
12       MulS_S16_S16_Sat,       mlib_VectorMulS_S16C_U8C_Mod,      mlib_Vector‐
13       MulS_S16C_U8C_Sat,      mlib_VectorMulS_S16C_S8C_Mod,      mlib_Vector‐
14       MulS_S16C_S8C_Sat,      mlib_VectorMulS_S16C_S16C_Mod,     mlib_Vector‐
15       MulS_S16C_S16C_Sat,      mlib_VectorMulS_S32_S16_Mod,      mlib_Vector‐
16       MulS_S32_S16_Sat,       mlib_VectorMulS_S32_S32_Mod,       mlib_Vector‐
17       MulS_S32_S32_Sat,      mlib_VectorMulS_S32C_S16C_Mod,      mlib_Vector‐
18       MulS_S32C_S16C_Sat,     mlib_VectorMulS_S32C_S32C_Mod,     mlib_Vector‐
19       MulS_S32C_S32C_Sat - vector multiplication by scalar
20

SYNOPSIS

22       cc [ flag... ] file... -lmlib [ library... ]
23       #include <mlib.h>
24
25       mlib_status mlib_VectorMulS_U8_U8_Mod(mlib_u8 *z, const mlib_u8 *x,
26            const mlib_u8 *c, mlib_s32 n);
27
28
29       mlib_status mlib_VectorMulS_U8_U8_Sat(mlib_u8 *z, const mlib_u8 *x,
30            const mlib_u8 *c, mlib_s32 n);
31
32
33       mlib_status mlib_VectorMulS_U8C_U8C_Mod(mlib_u8 *z, const mlib_u8 *x,
34            const mlib_u8 *c, mlib_s32 n);
35
36
37       mlib_status mlib_VectorMulS_U8C_U8C_Sat(mlib_u8 *z, const mlib_u8 *x,
38            const mlib_u8 *c, mlib_s32 n);
39
40
41       mlib_status mlib_VectorMulS_S8_S8_Mod(mlib_s8 *z, const mlib_s8 *x,
42            const mlib_s8 *c, mlib_s32 n);
43
44
45       mlib_status mlib_VectorMulS_S8_S8_Sat(mlib_s8 *z, const mlib_s8 *x,
46            const mlib_s8 *c, mlib_s32 n);
47
48
49       mlib_status mlib_VectorMulS_S8C_S8C_Mod(mlib_s8 *z, const mlib_s8 *x,
50            const mlib_s8 *c, mlib_s32 n);
51
52
53       mlib_status mlib_VectorMulS_S8C_S8C_Sat(mlib_s8 *z, const mlib_s8 *x,
54            const mlib_s8 *c, mlib_s32 n);
55
56
57       mlib_status mlib_VectorMulS_S16_U8_Mod(mlib_s16 *z, const mlib_u8 *x,
58            const mlib_u8 *c, mlib_s32 n);
59
60
61       mlib_status mlib_VectorMulS_S16_U8_Sat(mlib_s16 *z, const mlib_u8 *x,
62            const mlib_u8 *c, mlib_s32 n);
63
64
65       mlib_status mlib_VectorMulS_S16_S8_Mod(mlib_s16 *z, const mlib_s8 *x,
66            const mlib_s8 *c, mlib_s32 n);
67
68
69       mlib_status mlib_VectorMulS_S16_S8_Sat(mlib_s16 *z, const mlib_s8 *x,
70            const mlib_s8 *c, mlib_s32 n);
71
72
73       mlib_status mlib_VectorMulS_S16_S16_Mod(mlib_s16 *z, const mlib_s16 *x,
74            const mlib_s16 *c, mlib_s32 n);
75
76
77       mlib_status mlib_VectorMulS_S16_S16_Sat(mlib_s16 *z, const mlib_s16 *x,
78            const mlib_s16 *c, mlib_s32 n);
79
80
81       mlib_status mlib_VectorMulS_S16C_U8C_Mod(mlib_s16 *z, const mlib_u8 *x,
82            const mlib_u8 *c, mlib_s32 n);
83
84
85       mlib_status mlib_VectorMulS_S16C_U8C_Sat(mlib_s16 *z, const mlib_u8 *x,
86            const mlib_u8 *c, mlib_s32 n);
87
88
89       mlib_status mlib_VectorMulS_S16C_S8C_Mod(mlib_s16 *z, const mlib_s8 *x,
90            const mlib_s8 *c, mlib_s32 n);
91
92
93       mlib_status mlib_VectorMulS_S16C_S8C_Sat(mlib_s16 *z, const mlib_s8 *x,
94            const mlib_s8 *c, mlib_s32 n);
95
96
97       mlib_status mlib_VectorMulS_S16C_S16C_Mod(mlib_s16 *z, const mlib_s16 *x,
98            const mlib_s16 *c, mlib_s32 n);
99
100
101       mlib_status mlib_VectorMulS_S16C_S16C_Sat(mlib_s16 *z, const mlib_s16 *x,
102            const mlib_s16 *c, mlib_s32 n);
103
104
105       mlib_status mlib_VectorMulS_S32_S16_Mod(mlib_s32 *z, const mlib_s16 *x,
106            const mlib_s16 *c, mlib_s32 n);
107
108
109       mlib_status mlib_VectorMulS_S32_S16_Sat(mlib_s32 *z, const mlib_s16 *x,
110            const mlib_s16 *c, mlib_s32 n);
111
112
113       mlib_status mlib_VectorMulS_S32_S32_Mod(mlib_s32 *z, const mlib_s32 *x,
114            const mlib_s32 *c, mlib_s32 n);
115
116
117       mlib_status mlib_VectorMulS_S32_S32_Sat(mlib_s32 *z, const mlib_s32 *x,
118            const mlib_s32 *c, mlib_s32 n);
119
120
121       mlib_status mlib_VectorMulS_S32C_S16C_Mod(mlib_s32 *z, const mlib_s16 *x,
122            const mlib_s16 *c, mlib_s32 n);
123
124
125       mlib_status mlib_VectorMulS_S32C_S16C_Sat(mlib_s32 *z, const mlib_s16 *x,
126            const mlib_s16 *c, mlib_s32 n);
127
128
129       mlib_status mlib_VectorMulS_S32C_S32C_Mod(mlib_s32 *z, const mlib_s32 *x,
130            const mlib_s32 *c, mlib_s32 n);
131
132
133       mlib_status mlib_VectorMulS_S32C_S32C_Sat(mlib_s32 *z, const mlib_s32 *x,
134            const mlib_s32 *c, mlib_s32 n);
135
136

DESCRIPTION

138       Each of these functions multiplies a vector by a scalar.
139
140
141       For real data, the following equation is used:
142
143         z[i] = x[i] * c[0]
144
145
146
147       where i = 0, 1, ..., (n - 1).
148
149
150       For complex data, the following equation is used:
151
152         z[2*i]     = x[2*i]*c[0] - x[2*i + 1]*c[1]
153         z[2*i + 1] = x[2*i]*c[1] + x[2*i + 1]*c[0]
154
155
156
157       where i = 0, 1, ..., (n - 1).
158

PARAMETERS

160       Each of the functions takes the following arguments:
161
162       z    Pointer to the first element of the destination vector.
163
164
165       x    Pointer to the first element of the source vector.
166
167
168       c    Pointer to the source scalar. When the function is used with  com‐
169            plex  data  types,  c[0] contains the real part of the scalar, and
170            c[1] contains the imaginary part of the scalar.
171
172
173       n    Number of elements in the vectors.
174
175

RETURN VALUES

177       Each of the functions returns MLIB_SUCCESS if successful. Otherwise  it
178       returns MLIB_FAILURE.
179

ATTRIBUTES

181       See attributes(5) for descriptions of the following attributes:
182
183
184
185
186       ┌─────────────────────────────┬─────────────────────────────┐
187       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
188       ├─────────────────────────────┼─────────────────────────────┤
189       │Interface Stability          │Committed                    │
190       ├─────────────────────────────┼─────────────────────────────┤
191       │MT-Level                     │MT-Safe                      │
192       └─────────────────────────────┴─────────────────────────────┘
193

SEE ALSO

195       mlib_VectorMulS_U8_Mod(3MLIB), attributes(5)
196
197
198
199SunOS 5.11                        2 Mar 2007  mlib_VectorMulS_U8_U8_Mod(3MLIB)
Impressum