1mlib_VectorMul_U8_Mod(3MLIBm)ediaLib Library Functionmslib_VectorMul_U8_Mod(3MLIB)
2
3
4

NAME

6       mlib_VectorMul_U8_Mod,  mlib_VectorMul_U8_Sat,  mlib_VectorMul_U8C_Mod,
7       mlib_VectorMul_U8C_Sat,  mlib_VectorMul_S8_Mod,  mlib_VectorMul_S8_Sat,
8       mlib_VectorMul_S8C_Mod, mlib_VectorMul_S8C_Sat, mlib_VectorMul_S16_Mod,
9       mlib_VectorMul_S16_Sat,      mlib_VectorMul_S16C_Mod,      mlib_Vector‐
10       Mul_S16C_Sat, mlib_VectorMul_S32_Mod, mlib_VectorMul_S32_Sat, mlib_Vec‐
11       torMul_S32C_Mod, mlib_VectorMul_S32C_Sat -  vector  multiplication,  in
12       place
13

SYNOPSIS

15       cc [ flag... ] file... -lmlib [ library... ]
16       #include <mlib.h>
17
18       mlib_status mlib_VectorMul_U8_Mod(mlib_u8 *xz, const mlib_u8 *y,
19            mlib_s32 n);
20
21
22       mlib_status mlib_VectorMul_U8_Sat(mlib_u8 *xz, const mlib_u8 *y,
23            mlib_s32 n);
24
25
26       mlib_status mlib_VectorMul_U8C_Mod(mlib_u8 *xz, const mlib_u8 *y,
27            mlib_s32 n);
28
29
30       mlib_status mlib_VectorMul_U8C_Sat(mlib_u8 *xz, const mlib_u8 *y,
31            mlib_s32 n);
32
33
34       mlib_status mlib_VectorMul_S8_Mod(mlib_s8 *xz, const mlib_s8 *y,
35            mlib_s32 n);
36
37
38       mlib_status mlib_VectorMul_S8_Sat(mlib_s8 *xz, const mlib_s8 *y,
39            mlib_s32 n);
40
41
42       mlib_status mlib_VectorMul_S8C_Mod(mlib_s8 *xz, const mlib_s8 *y,
43            mlib_s32 n);
44
45
46       mlib_status mlib_VectorMul_S8C_Sat(mlib_s8 *xz, const mlib_s8 *y,
47            mlib_s32 n);
48
49
50       mlib_status mlib_VectorMul_S16_Mod(mlib_s16 *xz, const mlib_s16 *y,
51            mlib_s32 n);
52
53
54       mlib_status mlib_VectorMul_S16_Sat(mlib_s16 *xz, const mlib_s16 *y,
55            mlib_s32 n);
56
57
58       mlib_status mlib_VectorMul_S16C_Mod(mlib_s16 *xz, const mlib_s16 *y,
59            mlib_s32 n);
60
61
62       mlib_status mlib_VectorMul_S16C_Sat(mlib_s16 *xz, const mlib_s16 *y,
63            mlib_s32 n);
64
65
66       mlib_status mlib_VectorMul_S32_Mod(mlib_s32 *xz, const mlib_s32 *y,
67            mlib_s32 n);
68
69
70       mlib_status mlib_VectorMul_S32_Sat(mlib_s32 *xz, const mlib_s32 *y,
71            mlib_s32 n);
72
73
74       mlib_status mlib_VectorMul_S32C_Mod(mlib_s32 *xz, const mlib_s32 *y,
75            mlib_s32 n);
76
77
78       mlib_status mlib_VectorMul_S32C_Sat(mlib_s32 *xz, const mlib_s32 *y,
79            mlib_s32 n);
80
81

DESCRIPTION

83       Each of these functions performs an in-place multiplication of one vec‐
84       tor by another vector.
85
86
87       For real data, the following equation is used:
88
89         xz[i] = xz[i] * y[i]
90
91
92
93       where i = 0, 1, ..., (n - 1).
94
95
96       For complex data, the following equation is used:
97
98         tmp         = xz[2*i]
99         xz[2*i]     = tmp*y[2*i] - xz[2*i + 1]*y[2*i + 1]
100         xz[2*i + 1] = tmp*y[2*i + 1] + xz[2*i + 1]*y[2*i]
101
102
103
104       where i = 0, 1, ..., (n - 1).
105

PARAMETERS

107       Each of the functions takes the following arguments:
108
109       xz    Pointer to the first element of the first source and  destination
110             vector.
111
112
113       y     Pointer to the first element of the second source vector.
114
115
116       n     Number of elements in the vectors.
117
118

RETURN VALUES

120       Each  of the functions returns MLIB_SUCCESS if successful. Otherwise it
121       returns MLIB_FAILURE.
122

ATTRIBUTES

124       See attributes(5) for descriptions of the following attributes:
125
126
127
128
129       ┌─────────────────────────────┬─────────────────────────────┐
130       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
131       ├─────────────────────────────┼─────────────────────────────┤
132       │Interface Stability          │Committed                    │
133       ├─────────────────────────────┼─────────────────────────────┤
134       │MT-Level                     │MT-Safe                      │
135       └─────────────────────────────┴─────────────────────────────┘
136

SEE ALSO

138       mlib_VectorMul_U8_U8_Mod(3MLIB), attributes(5)
139
140
141
142SunOS 5.11                        2 Mar 2007      mlib_VectorMul_U8_Mod(3MLIB)
Impressum