1mlib_VectorAdd_U8_U8_Mod(3MmLeIdBi)aLib Library Functmiloinbs_VectorAdd_U8_U8_Mod(3MLIB)
2
3
4
6 mlib_VectorAdd_U8_U8_Mod, mlib_VectorAdd_U8_U8_Sat, mlib_Vec‐
7 torAdd_U8C_U8C_Mod, mlib_VectorAdd_U8C_U8C_Sat, mlib_Vec‐
8 torAdd_S8_S8_Mod, mlib_VectorAdd_S8_S8_Sat, mlib_VectorAdd_S8C_S8C_Mod,
9 mlib_VectorAdd_S8C_S8C_Sat, mlib_VectorAdd_S16_U8_Mod, mlib_Vec‐
10 torAdd_S16_U8_Sat, mlib_VectorAdd_S16_S8_Mod, mlib_Vec‐
11 torAdd_S16_S8_Sat, mlib_VectorAdd_S16_S16_Mod, mlib_Vec‐
12 torAdd_S16_S16_Sat, mlib_VectorAdd_S16C_U8C_Mod, mlib_Vec‐
13 torAdd_S16C_U8C_Sat, mlib_VectorAdd_S16C_S8C_Mod, mlib_Vec‐
14 torAdd_S16C_S8C_Sat, mlib_VectorAdd_S16C_S16C_Mod, mlib_Vec‐
15 torAdd_S16C_S16C_Sat, mlib_VectorAdd_S32_S16_Mod, mlib_Vec‐
16 torAdd_S32_S16_Sat, mlib_VectorAdd_S32_S32_Mod, mlib_Vec‐
17 torAdd_S32_S32_Sat, mlib_VectorAdd_S32C_S16C_Mod, mlib_Vec‐
18 torAdd_S32C_S16C_Sat, mlib_VectorAdd_S32C_S32C_Mod, mlib_Vec‐
19 torAdd_S32C_S32C_Sat - vector addition
20
22 cc [ flag... ] file... -lmlib [ library... ]
23 #include <mlib.h>
24
25 mlib_status mlib_VectorAdd_U8_U8_Mod(mlib_u8 *z,
26 const mlib_u8 *x, const mlib_u8 *y, mlib_s32 n);
27
28
29 mlib_status mlib_VectorAdd_U8_U8_Sat(mlib_u8 *z,
30 const mlib_u8 *x, const mlib_u8 *y, mlib_s32 n);
31
32
33 mlib_status mlib_VectorAdd_U8C_U8C_Mod(mlib_u8 *z,
34 const mlib_u8 *x, const mlib_u8 *y, mlib_s32 n);
35
36
37 mlib_status mlib_VectorAdd_U8C_U8C_Sat(mlib_u8 *z,
38 const mlib_u8 *x, const mlib_u8 *y, mlib_s32 n);
39
40
41 mlib_status mlib_VectorAdd_S8_S8_Mod(mlib_s8 *z,
42 const mlib_s8 *x, const mlib_s8 *y, mlib_s32 n);
43
44
45 mlib_status mlib_VectorAdd_S8_S8_Sat(mlib_s8 *z,
46 const mlib_s8 *x, const mlib_s8 *y, mlib_s32 n);
47
48
49 mlib_status mlib_VectorAdd_S8C_S8C_Mod(mlib_s8 *z,
50 const mlib_s8 *x, const mlib_s8 *y, mlib_s32 n);
51
52
53 mlib_status mlib_VectorAdd_S8C_S8C_Sat(mlib_s8 *z,
54 const mlib_s8 *x, const mlib_s8 *y, mlib_s32 n);
55
56
57 mlib_status mlib_VectorAdd_S16_U8_Mod(mlib_s16 *z,
58 const mlib_u8 *x, const mlib_u8 *y, mlib_s32 n);
59
60
61 mlib_status mlib_VectorAdd_S16_U8_Sat(mlib_s16 *z,
62 const mlib_u8 *x, const mlib_u8 *y, mlib_s32 n);
63
64
65 mlib_status mlib_VectorAdd_S16_S8_Mod(mlib_s16 *z,
66 const mlib_s8 *x, const mlib_s8 *y, mlib_s32 n);
67
68
69 mlib_status mlib_VectorAdd_S16_S8_Sat(mlib_s16 *z,
70 const mlib_s8 *x, const mlib_s8 *y, mlib_s32 n);
71
72
73 mlib_status mlib_VectorAdd_S16_S16_Mod(mlib_s16 *z,
74 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 n);
75
76
77 mlib_status mlib_VectorAdd_S16_S16_Sat(mlib_s16 *z,
78 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 n);
79
80
81 mlib_status mlib_VectorAdd_S16C_U8C_Mod(mlib_s16 *z,
82 const mlib_u8 *x, const mlib_u8 *y, mlib_s32 n);
83
84
85 mlib_status mlib_VectorAdd_S16C_U8C_Sat(mlib_s16 *z,
86 const mlib_u8 *x, const mlib_u8 *y, mlib_s32 n);
87
88
89 mlib_status mlib_VectorAdd_S16C_S8C_Mod(mlib_s16 *z,
90 const mlib_s8 *x, const mlib_s8 *y, mlib_s32 n);
91
92
93 mlib_status mlib_VectorAdd_S16C_S8C_Sat(mlib_s16 *z,
94 const mlib_s8 *x, const mlib_s8 *y, mlib_s32 n);
95
96
97 mlib_status mlib_VectorAdd_S16C_S16C_Mod(mlib_s16 *z,
98 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 n);
99
100
101 mlib_status mlib_VectorAdd_S16C_S16C_Sat(mlib_s16 *z,
102 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 n);
103
104
105 mlib_status mlib_VectorAdd_S32_S16_Mod(mlib_s32 *z,
106 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 n);
107
108
109 mlib_status mlib_VectorAdd_S32_S16_Sat(mlib_s32 *z,
110 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 n);
111
112
113 mlib_status mlib_VectorAdd_S32_S32_Mod(mlib_s32 *z,
114 const mlib_s32 *x, const mlib_s32 *y, mlib_s32 n);
115
116
117 mlib_status mlib_VectorAdd_S32_S32_Sat(mlib_s32 *z,
118 const mlib_s32 *x, const mlib_s32 *y, mlib_s32 n);
119
120
121 mlib_status mlib_VectorAdd_S32C_S16C_Mod(mlib_s32 *z,
122 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 n);
123
124
125 mlib_status mlib_VectorAdd_S32C_S16C_Sat(mlib_s32 *z,
126 const mlib_s16 *x, const mlib_s16 *y, mlib_s32 n);
127
128
129 mlib_status mlib_VectorAdd_S32C_S32C_Mod(mlib_s32 *z,
130 const mlib_s32 *x, const mlib_s32 *y, mlib_s32 n);
131
132
133 mlib_status mlib_VectorAdd_S32C_S32C_Sat(mlib_s32 *z,
134 const mlib_s32 *x, const mlib_s32 *y, mlib_s32 n);
135
136
138 Each of these functions performs the addition of one vector to another
139 vector.
140
141
142 It uses the following equation:
143
144 z[i] = x[i] + y[i]
145
146
147
148 where i = 0, 1, ..., (n - 1) for real data; i = 0, 1, ..., (2*n - 1)
149 for complex data.
150
152 Each of the functions takes the following arguments:
153
154 z Pointer to the first element of the destination vector.
155
156
157 x Pointer to the first element of the first source vector.
158
159
160 y Pointer to the first element of the second source vector.
161
162
163 n Number of elements in the vectors.
164
165
167 Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
168 returns MLIB_FAILURE.
169
171 See attributes(5) for descriptions of the following attributes:
172
173
174
175
176 ┌─────────────────────────────┬─────────────────────────────┐
177 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
178 ├─────────────────────────────┼─────────────────────────────┤
179 │Interface Stability │Committed │
180 ├─────────────────────────────┼─────────────────────────────┤
181 │MT-Level │MT-Safe │
182 └─────────────────────────────┴─────────────────────────────┘
183
185 mlib_VectorAdd_U8_Mod(3MLIB), attributes(5)
186
187
188
189SunOS 5.11 2 Mar 2007 mlib_VectorAdd_U8_U8_Mod(3MLIB)