1mlib_VectorSubS_U8_U8_Mod(3mMeLdIiBa)Lib Library Funcmtliiobn_sVectorSubS_U8_U8_Mod(3MLIB)
2
3
4

NAME

6       mlib_VectorSubS_U8_U8_Mod,    mlib_VectorSubS_U8_U8_Sat,   mlib_Vector‐
7       SubS_U8C_U8C_Mod,       mlib_VectorSubS_U8C_U8C_Sat,       mlib_Vector‐
8       SubS_S8_S8_Mod, mlib_VectorSubS_S8_S8_Sat, mlib_VectorSubS_S8C_S8C_Mod,
9       mlib_VectorSubS_S8C_S8C_Sat,  mlib_VectorSubS_S16_U8_Mod,  mlib_Vector‐
10       SubS_S16_U8_Sat,        mlib_VectorSubS_S16_S8_Mod,        mlib_Vector‐
11       SubS_S16_S8_Sat,       mlib_VectorSubS_S16_S16_Mod,        mlib_Vector‐
12       SubS_S16_S16_Sat,       mlib_VectorSubS_S16C_U8C_Mod,      mlib_Vector‐
13       SubS_S16C_U8C_Sat,      mlib_VectorSubS_S16C_S8C_Mod,      mlib_Vector‐
14       SubS_S16C_S8C_Sat,      mlib_VectorSubS_S16C_S16C_Mod,     mlib_Vector‐
15       SubS_S16C_S16C_Sat,      mlib_VectorSubS_S32_S16_Mod,      mlib_Vector‐
16       SubS_S32_S16_Sat,       mlib_VectorSubS_S32_S32_Mod,       mlib_Vector‐
17       SubS_S32_S32_Sat,      mlib_VectorSubS_S32C_S16C_Mod,      mlib_Vector‐
18       SubS_S32C_S16C_Sat,     mlib_VectorSubS_S32C_S32C_Mod,     mlib_Vector‐
19       SubS_S32C_S32C_Sat - vector subtraction from scalar
20

SYNOPSIS

22       cc [ flag... ] file... -lmlib [ library... ]
23       #include <mlib.h>
24
25       mlib_status mlib_VectorSubS_U8_U8_Mod(mlib_u8 *z,
26            const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
27
28
29       mlib_status mlib_VectorSubS_U8_U8_Sat(mlib_u8 *z,
30            const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
31
32
33       mlib_status mlib_VectorSubS_U8C_U8C_Mod(mlib_u8 *z,
34            const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
35
36
37       mlib_status mlib_VectorSubS_U8C_U8C_Sat(mlib_u8 *z,
38            const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
39
40
41       mlib_status mlib_VectorSubS_S8_S8_Mod(mlib_s8 *z,
42            const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
43
44
45       mlib_status mlib_VectorSubS_S8_S8_Sat(mlib_s8 *z,
46            const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
47
48
49       mlib_status mlib_VectorSubS_S8C_S8C_Mod(mlib_s8 *z,
50            const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
51
52
53       mlib_status mlib_VectorSubS_S8C_S8C_Sat(mlib_s8 *z,
54            const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
55
56
57       mlib_status mlib_VectorSubS_S16_U8_Mod(mlib_s16 *z,
58            const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
59
60
61       mlib_status mlib_VectorSubS_S16_U8_Sat(mlib_s16 *z,
62            const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
63
64
65       mlib_status mlib_VectorSubS_S16_S8_Mod(mlib_s16 *z,
66            const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
67
68
69       mlib_status mlib_VectorSubS_S16_S8_Sat(mlib_s16 *z,
70            const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
71
72
73       mlib_status mlib_VectorSubS_S16_S16_Mod(mlib_s16 *z,
74            const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
75
76
77       mlib_status mlib_VectorSubS_S16_S16_Sat(mlib_s16 *z,
78            const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
79
80
81       mlib_status mlib_VectorSubS_S16C_U8C_Mod(mlib_s16 *z,
82            const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
83
84
85       mlib_status mlib_VectorSubS_S16C_U8C_Sat(mlib_s16 *z,
86            const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
87
88
89       mlib_status mlib_VectorSubS_S16C_S8C_Mod(mlib_s16 *z,
90            const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
91
92
93       mlib_status mlib_VectorSubS_S16C_S8C_Sat(mlib_s16 *z,
94            const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
95
96
97       mlib_status mlib_VectorSubS_S16C_S16C_Mod(mlib_s16 *z,
98            const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
99
100
101       mlib_status mlib_VectorSubS_S16C_S16C_Sat(mlib_s16 *z,
102            const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
103
104
105       mlib_status mlib_VectorSubS_S32_S16_Mod(mlib_s32 *z,
106            const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
107
108
109       mlib_status mlib_VectorSubS_S32_S16_Sat(mlib_s32 *z,
110            const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
111
112
113       mlib_status mlib_VectorSubS_S32_S32_Mod(mlib_s32 *z,
114            const mlib_s32 *x, const mlib_s32 *c, mlib_s32 n);
115
116
117       mlib_status mlib_VectorSubS_S32_S32_Sat(mlib_s32 *z,
118            const mlib_s32 *x, const mlib_s32 *c, mlib_s32 n);
119
120
121       mlib_status mlib_VectorSubS_S32C_S16C_Mod(mlib_s32 *z,
122            const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
123
124
125       mlib_status mlib_VectorSubS_S32C_S16C_Sat(mlib_s32 *z,
126            const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
127
128
129       mlib_status mlib_VectorSubS_S32C_S32C_Mod(mlib_s32 *z,
130            const mlib_s32 *x, const mlib_s32 *c, mlib_s32 n);
131
132
133       mlib_status mlib_VectorSubS_S32C_S32C_Sat(mlib_s32 *z,
134            const mlib_s32 *x, const mlib_s32 *c, mlib_s32 n);
135
136

DESCRIPTION

138       Each of these functions subtracts a vector from a scalar.
139
140
141       For real data, the following equation is used:
142
143         z[i] = c[0] - x[i]
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]     = c[0] - x[2*i]
153         z[2*i + 1] = c[1] - x[2*i + 1]
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 scalar for the real part, and
170            c[1] contains the scalar for the imaginary part.
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_VectorSubS_U8_Mod(3MLIB), attributes(5)
196
197
198
199SunOS 5.11                        2 Mar 2007  mlib_VectorSubS_U8_U8_Mod(3MLIB)
Impressum