1mlib_VectorSumAbs_U8_Sat(3MmLeIdBi)aLib Library Functmiloinbs_VectorSumAbs_U8_Sat(3MLIB)
2
3
4
6 mlib_VectorSumAbs_U8_Sat, mlib_VectorSumAbs_S8_Sat, mlib_VectorSum‐
7 Abs_S16_Sat, mlib_VectorSumAbs_S32_Sat - sum of the absolute values of
8 a vector
9
11 cc [ flag... ] file... -lmlib [ library... ]
12 #include <mlib.h>
13
14 mlib_status mlib_VectorSumAbs_U8_Sat(mlib_d64 *z, const mlib_u8 *x,
15 mlib_s32 n);
16
17
18 mlib_status mlib_VectorSumAbs_S8_Sat(mlib_d64 *z, const mlib_s8 *x,
19 mlib_s32 n);
20
21
22 mlib_status mlib_VectorSumAbs_S16_Sat(mlib_d64 *z, const mlib_s16 *x,
23 mlib_s32 n);
24
25
26 mlib_status mlib_VectorSumAbs_S32_Sat(mlib_d64 *z, const mlib_s32 *x,
27 mlib_s32 n);
28
29
31 Each of these functions computes the sum of the absolute values of a
32 vector.
33
34
35 The following equation is used:
36
37 n-1
38 z[0] = SUM |x[i]|
39 i=0
40
41
43 Each of the functions takes the following arguments:
44
45 z Pointer to the sum of the absolute values of the vector.
46
47
48 x Pointer to the first element of the first source vector.
49
50
51 n Number of elements in the vectors.
52
53
55 Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
56 returns MLIB_FAILURE.
57
59 See attributes(5) for descriptions of the following attributes:
60
61
62
63
64 ┌─────────────────────────────┬─────────────────────────────┐
65 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
66 ├─────────────────────────────┼─────────────────────────────┤
67 │Interface Stability │Committed │
68 ├─────────────────────────────┼─────────────────────────────┤
69 │MT-Level │MT-Safe │
70 └─────────────────────────────┴─────────────────────────────┘
71
73 attributes(5)
74
75
76
77SunOS 5.11 2 Mar 2007 mlib_VectorSumAbs_U8_Sat(3MLIB)