1mlib_VectorAddS_U8_U8_Mod(3mMeLdIiBa)Lib Library Funcmtliiobn_sVectorAddS_U8_U8_Mod(3MLIB)
2
3
4
6 mlib_VectorAddS_U8_U8_Mod, mlib_VectorAddS_U8_U8_Sat, mlib_Vec‐
7 torAddS_U8C_U8C_Mod, mlib_VectorAddS_U8C_U8C_Sat, mlib_Vec‐
8 torAddS_S8_S8_Mod, mlib_VectorAddS_S8_S8_Sat, mlib_Vec‐
9 torAddS_S8C_S8C_Mod, mlib_VectorAddS_S8C_S8C_Sat, mlib_Vec‐
10 torAddS_S16_U8_Mod, mlib_VectorAddS_S16_U8_Sat, mlib_Vec‐
11 torAddS_S16_S8_Mod, mlib_VectorAddS_S16_S8_Sat, mlib_Vec‐
12 torAddS_S16_S16_Mod, mlib_VectorAddS_S16_S16_Sat, mlib_Vec‐
13 torAddS_S16C_U8C_Mod, mlib_VectorAddS_S16C_U8C_Sat, mlib_Vec‐
14 torAddS_S16C_S8C_Mod, mlib_VectorAddS_S16C_S8C_Sat, mlib_Vec‐
15 torAddS_S16C_S16C_Mod, mlib_VectorAddS_S16C_S16C_Sat, mlib_Vec‐
16 torAddS_S32_S16_Mod, mlib_VectorAddS_S32_S16_Sat, mlib_Vec‐
17 torAddS_S32_S32_Mod, mlib_VectorAddS_S32_S32_Sat, mlib_Vec‐
18 torAddS_S32C_S16C_Mod, mlib_VectorAddS_S32C_S16C_Sat, mlib_Vec‐
19 torAddS_S32C_S32C_Mod, mlib_VectorAddS_S32C_S32C_Sat - vector addition
20 to scalar
21
23 cc [ flag... ] file... -lmlib [ library... ]
24 #include <mlib.h>
25
26 mlib_status mlib_VectorAddS_U8_U8_Mod(mlib_u8 *z,
27 const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
28
29
30 mlib_status mlib_VectorAddS_U8_U8_Sat(mlib_u8 *z,
31 const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
32
33
34 mlib_status mlib_VectorAddS_U8C_U8C_Mod(mlib_u8 *z,
35 const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
36
37
38 mlib_status mlib_VectorAddS_U8C_U8C_Sat(mlib_u8 *z,
39 const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
40
41
42 mlib_status mlib_VectorAddS_S8_S8_Mod(mlib_s8 *z,
43 const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
44
45
46 mlib_status mlib_VectorAddS_S8_S8_Sat(mlib_s8 *z,
47 const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
48
49
50 mlib_status mlib_VectorAddS_S8C_S8C_Mod(mlib_s8 *z,
51 const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
52
53
54 mlib_status mlib_VectorAddS_S8C_S8C_Sat(mlib_s8 *z,
55 const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
56
57
58 mlib_status mlib_VectorAddS_S16_U8_Mod(mlib_s16 *z,
59 const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
60
61
62 mlib_status mlib_VectorAddS_S16_U8_Sat(mlib_s16 *z,
63 const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
64
65
66 mlib_status mlib_VectorAddS_S16_S8_Mod(mlib_s16 *z,
67 const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
68
69
70 mlib_status mlib_VectorAddS_S16_S8_Sat(mlib_s16 *z,
71 const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
72
73
74 mlib_status mlib_VectorAddS_S16_S16_Mod(mlib_s16 *z,
75 const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
76
77
78 mlib_status mlib_VectorAddS_S16_S16_Sat(mlib_s16 *z,
79 const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
80
81
82 mlib_status mlib_VectorAddS_S16C_U8C_Mod(mlib_s16 *z,
83 const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
84
85
86 mlib_status mlib_VectorAddS_S16C_U8C_Sat(mlib_s16 *z,
87 const mlib_u8 *x, const mlib_u8 *c, mlib_s32 n);
88
89
90 mlib_status mlib_VectorAddS_S16C_S8C_Mod(mlib_s16 *z,
91 const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
92
93
94 mlib_status mlib_VectorAddS_S16C_S8C_Sat(mlib_s16 *z,
95 const mlib_s8 *x, const mlib_s8 *c, mlib_s32 n);
96
97
98 mlib_status mlib_VectorAddS_S16C_S16C_Mod(mlib_s16 *z,
99 const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
100
101
102 mlib_status mlib_VectorAddS_S16C_S16C_Sat(mlib_s16 *z,
103 const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
104
105
106 mlib_status mlib_VectorAddS_S32_S16_Mod(mlib_s32 *z,
107 const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
108
109
110 mlib_status mlib_VectorAddS_S32_S16_Sat(mlib_s32 *z,
111 const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
112
113
114 mlib_status mlib_VectorAddS_S32_S32_Mod(mlib_s32 *z,
115 const mlib_s32 *x, const mlib_s32 *c, mlib_s32 n);
116
117
118 mlib_status mlib_VectorAddS_S32_S32_Sat(mlib_s32 *z,
119 const mlib_s32 *x, const mlib_s32 *c, mlib_s32 n);
120
121
122 mlib_status mlib_VectorAddS_S32C_S16C_Mod(mlib_s32 *z,
123 const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
124
125
126 mlib_status mlib_VectorAddS_S32C_S16C_Sat(mlib_s32 *z,
127 const mlib_s16 *x, const mlib_s16 *c, mlib_s32 n);
128
129
130 mlib_status mlib_VectorAddS_S32C_S32C_Mod(mlib_s32 *z,
131 const mlib_s32 *x, const mlib_s32 *c, mlib_s32 n);
132
133
134 mlib_status mlib_VectorAddS_S32C_S32C_Sat(mlib_s32 *z,
135 const mlib_s32 *x, const mlib_s32 *c, mlib_s32 n);
136
137
139 Each of these functions adds a scalar to a vector.
140
141
142 For real data, the following equation is used:
143
144 z[i] = c[0] + x[i]
145
146
147
148 where i = 0, 1, ..., (n - 1).
149
150
151 For complex data, the following equation is used:
152
153 z[2*i] = c[0] + x[2*i]
154 z[2*i + 1] = c[1] + x[2*i + 1]
155
156
157
158 where i = 0, 1, ..., (n - 1).
159
161 Each of the functions takes the following arguments:
162
163 z Pointer to the first element of the destination vector.
164
165
166 x Pointer to the first element of the source vector.
167
168
169 c Pointer to the source scalar. When the function is used with com‐
170 plex data types, c[0] contains the scalar for the real part, and
171 c[1] contains the scalar for the imaginary part.
172
173
174 n Number of elements in the vectors.
175
176
178 Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
179 returns MLIB_FAILURE.
180
182 See attributes(5) for descriptions of the following attributes:
183
184
185
186
187 ┌─────────────────────────────┬─────────────────────────────┐
188 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
189 ├─────────────────────────────┼─────────────────────────────┤
190 │Interface Stability │Committed │
191 ├─────────────────────────────┼─────────────────────────────┤
192 │MT-Level │MT-Safe │
193 └─────────────────────────────┴─────────────────────────────┘
194
196 mlib_VectorAddS_U8_Mod(3MLIB), attributes(5)
197
198
199
200SunOS 5.11 2 Mar 2007 mlib_VectorAddS_U8_U8_Mod(3MLIB)