1mlib_VectorScale_U8_U8_Mod(m3eMdLiIaBL)ib Library Funmcltiibo_nVsectorScale_U8_U8_Mod(3MLIB)
2
3
4

NAME

6       mlib_VectorScale_U8_U8_Mod,    mlib_VectorScale_U8_U8_Sat,    mlib_Vec‐
7       torScale_U8C_U8C_Mod,      mlib_VectorScale_U8C_U8C_Sat,      mlib_Vec‐
8       torScale_S8_S8_Mod,        mlib_VectorScale_S8_S8_Sat,        mlib_Vec‐
9       torScale_S8C_S8C_Mod,      mlib_VectorScale_S8C_S8C_Sat,      mlib_Vec‐
10       torScale_S16_U8_Mod,       mlib_VectorScale_S16_U8_Sat,       mlib_Vec‐
11       torScale_S16_S8_Mod,       mlib_VectorScale_S16_S8_Sat,       mlib_Vec‐
12       torScale_S16_S16_Mod,      mlib_VectorScale_S16_S16_Sat,      mlib_Vec‐
13       torScale_S16C_U8C_Mod,     mlib_VectorScale_S16C_U8C_Sat,     mlib_Vec‐
14       torScale_S16C_S8C_Mod,     mlib_VectorScale_S16C_S8C_Sat,     mlib_Vec‐
15       torScale_S16C_S16C_Mod,    mlib_VectorScale_S16C_S16C_Sat,    mlib_Vec‐
16       torScale_S32_S16_Mod,      mlib_VectorScale_S32_S16_Sat,      mlib_Vec‐
17       torScale_S32_S32_Mod,      mlib_VectorScale_S32_S32_Sat,      mlib_Vec‐
18       torScale_S32C_S16C_Mod,    mlib_VectorScale_S32C_S16C_Sat,    mlib_Vec‐
19       torScale_S32C_S32C_Mod, mlib_VectorScale_S32C_S32C_Sat - vector  linear
20       scaling
21

SYNOPSIS

23       cc [ flag... ] file... -lmlib [ library... ]
24       #include <mlib.h>
25
26       mlib_status mlib_VectorScale_U8_U8_Mod(mlib_u8 *z, const mlib_u8 *x,
27            const mlib_u8 *a, const mlib_u8 *b, mlib_s32 n);
28
29
30       mlib_status mlib_VectorScale_U8_U8_Sat(mlib_u8 *z, const mlib_u8 *x,
31            const mlib_u8 *a, const mlib_u8 *b, mlib_s32 n);
32
33
34       mlib_status mlib_VectorScale_U8C_U8C_Mod(mlib_u8 *z, const mlib_u8 *x,
35            const mlib_u8 *a, const mlib_u8 *b, mlib_s32 n);
36
37
38       mlib_status mlib_VectorScale_U8C_U8C_Sat(mlib_u8 *z, const mlib_u8 *x,
39            const mlib_u8 *a, const mlib_u8 *b, mlib_s32 n);
40
41
42       mlib_status mlib_VectorScale_S8_S8_Mod(mlib_s8 *z, const mlib_s8 *x,
43            const mlib_s8 *a, const mlib_s8 *b, mlib_s32 n);
44
45
46       mlib_status mlib_VectorScale_S8_S8_Sat(mlib_s8 *z, const mlib_s8 *x,
47            const mlib_s8 *a, const mlib_s8 *b, mlib_s32 n);
48
49
50       mlib_status mlib_VectorScale_S8C_S8C_Mod(mlib_s8 *z, const mlib_s8 *x,
51            const mlib_s8 *a, const mlib_s8 *b, mlib_s32 n);
52
53
54       mlib_status mlib_VectorScale_S8C_S8C_Sat(mlib_s8 *z, const mlib_s8 *x,
55            const mlib_s8 *a, const mlib_s8 *b, mlib_s32 n);
56
57
58       mlib_status mlib_VectorScale_S16_U8_Mod(mlib_s16 *z, const mlib_u8 *x,
59            const mlib_u8 *a, const mlib_u8 *b, mlib_s32 n);
60
61
62       mlib_status mlib_VectorScale_S16_U8_Sat(mlib_s16 *z, const mlib_u8 *x,
63            const mlib_u8 *a, const mlib_u8 *b, mlib_s32 n);
64
65
66       mlib_status mlib_VectorScale_S16_S8_Mod(mlib_s16 *z, const mlib_s8 *x,
67            const mlib_s8 *a, const mlib_s8 *b, mlib_s32 n);
68
69
70       mlib_status mlib_VectorScale_S16_S8_Sat(mlib_s16 *z, const mlib_s8 *x,
71            const mlib_s8 *a, const mlib_s8 *b, mlib_s32 n);
72
73
74       mlib_status mlib_VectorScale_S16_S16_Mod(mlib_s16 *z, const mlib_s16 *x,
75            const mlib_s16 *a, const mlib_s16 *b, mlib_s32 n);
76
77
78       mlib_status mlib_VectorScale_S16_S16_Sat(mlib_s16 *z, const mlib_s16 *x,
79            const mlib_s16 *a, const mlib_s16 *b, mlib_s32 n);
80
81
82       mlib_status mlib_VectorScale_S16C_U8C_Mod(mlib_s16 *z, const mlib_u8 *x,
83            const mlib_u8 *a, const mlib_u8 *b, mlib_s32 n);
84
85
86       mlib_status mlib_VectorScale_S16C_U8C_Sat(mlib_s16 *z, const mlib_u8 *x,
87            const mlib_u8 *a, const mlib_u8 *b, mlib_s32 n);
88
89
90       mlib_status mlib_VectorScale_S16C_S8C_Mod(mlib_s16 *z, const mlib_s8 *x,
91            const mlib_s8 *a, const mlib_s8 *b, mlib_s32 n);
92
93
94       mlib_status mlib_VectorScale_S16C_S8C_Sat(mlib_s16 *z, const mlib_s8 *x,
95            const mlib_s8 *a, const mlib_s8 *b, mlib_s32 n);
96
97
98       mlib_status mlib_VectorScale_S16C_S16C_Mod(mlib_s16 *z, const mlib_s16 *x,
99            const mlib_s16 *a, const mlib_s16 *b, mlib_s32 n);
100
101
102       mlib_status mlib_VectorScale_S16C_S16C_Sat(mlib_s16 *z, const mlib_s16 *x,
103            const mlib_s16 *a, const mlib_s16 *b, mlib_s32 n);
104
105
106       mlib_status mlib_VectorScale_S32_S16_Mod(mlib_s32 *z, const mlib_s16 *x,
107            const mlib_s16 *a, const mlib_s16 *b, mlib_s32 n);
108
109
110       mlib_status mlib_VectorScale_S32_S16_Sat(mlib_s32 *z, const mlib_s16 *x,
111            const mlib_s16 *a, const mlib_s16 *b, mlib_s32 n);
112
113
114       mlib_status mlib_VectorScale_S32_S32_Mod(mlib_s32 *z, const mlib_s32 *x,
115            const mlib_s32 *a, const mlib_s32 *b, mlib_s32 n);
116
117
118       mlib_status mlib_VectorScale_S32_S32_Sat(mlib_s32 *z, const mlib_s32 *x,
119            const mlib_s32 *a, const mlib_s32 *b, mlib_s32 n);
120
121
122       mlib_status mlib_VectorScale_S32C_S16C_Mod(mlib_s32 *z, const mlib_s16 *x,
123            const mlib_s16 *a, const mlib_s16 *b, mlib_s32 n);
124
125
126       mlib_status mlib_VectorScale_S32C_S16C_Sat(mlib_s32 *z, const mlib_s16 *x,
127            const mlib_s16 *a, const mlib_s16 *b, mlib_s32 n);
128
129
130       mlib_status mlib_VectorScale_S32C_S32C_Mod(mlib_s32 *z, const mlib_s32 *x,
131            const mlib_s32 *a, const mlib_s32 *b, mlib_s32 n);
132
133
134       mlib_status mlib_VectorScale_S32C_S32C_Sat(mlib_s32 *z, const mlib_s32 *x,
135            const mlib_s32 *a, const mlib_s32 *b, mlib_s32 n);
136
137

DESCRIPTION

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

PARAMETERS

162       Each of the functions takes the following arguments:
163
164       z    Pointer to the first element of the destination vector.
165
166
167       x    Pointer to the first element of the source vector.
168
169
170       a    Pointer to the source scaling factor. When the  function  is  used
171            with  complex data types, a[0] contains the real part of the scal‐
172            ing factor, and a[1] contains the imaginary part  of  the  scaling
173            factor.
174
175
176       b    Pointer  to the source offset. When the function is used with com‐
177            plex data types, b[0] contains the real part of  the  offset,  and
178            b[1] contains the imaginary part of the offset.
179
180
181       n    Number of elements in the vectors.
182
183

RETURN VALUES

185       Each  of the functions returns MLIB_SUCCESS if successful. Otherwise it
186       returns MLIB_FAILURE.
187

ATTRIBUTES

189       See attributes(5) for descriptions of the following attributes:
190
191
192
193
194       ┌─────────────────────────────┬─────────────────────────────┐
195       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
196       ├─────────────────────────────┼─────────────────────────────┤
197       │Interface Stability          │Committed                    │
198       ├─────────────────────────────┼─────────────────────────────┤
199       │MT-Level                     │MT-Safe                      │
200       └─────────────────────────────┴─────────────────────────────┘
201

SEE ALSO

203       mlib_VectorScale_U8_Mod(3MLIB), attributes(5)
204
205
206
207SunOS 5.11                        2 Mar 2007 mlib_VectorScale_U8_U8_Mod(3MLIB)
Impressum