1mlib_VectorSumAbsDiff_U8_Samte(d3iMaLLIiBb)Library Fmulnicbt_iVoencstorSumAbsDiff_U8_Sat(3MLIB)
2
3
4

NAME

6       mlib_VectorSumAbsDiff_U8_Sat,  mlib_VectorSumAbsDiff_S8_Sat,  mlib_Vec‐
7       torSumAbsDiff_S16_Sat, mlib_VectorSumAbsDiff_S32_Sat - sum of the abso‐
8       lute values of the differences of two vectors
9

SYNOPSIS

11       cc [ flag... ] file... -lmlib [ library... ]
12       #include <mlib.h>
13
14       mlib_status mlib_VectorSumAbsDiff_U8_Sat(mlib_d64 *z,
15            const mlib_u8 *x, const mlib_u8 *y, mlib_s32 n);
16
17
18       mlib_status mlib_VectorSumAbsDiff_S8_Sat(mlib_d64 *z,
19            const mlib_s8 *x, const mlib_s8 *y, mlib_s32 n);
20
21
22       mlib_status mlib_VectorSumAbsDiff_S16_Sat(mlib_d64 *z,
23            const mlib_s16 *x, const mlib_s16 *y, mlib_s32 n);
24
25
26       mlib_status mlib_VectorSumAbsDiff_S32_Sat(mlib_d64 *z,
27            const mlib_s32 *x, const mlib_s32 *y, mlib_s32 n);
28
29

DESCRIPTION

31       Each  of these functions computes the sum of the absolute values of the
32       differences of two vectors.
33
34
35       The following equation is used:
36
37                n-1
38         z[0] = SUM |x[i] - y[i]|
39                i=0
40
41

PARAMETERS

43       Each of the functions takes the following arguments:
44
45       z    Pointer to the sum of the absolute differences  between  two  vec‐
46            tors.
47
48
49       x    Pointer to the first element of the first source vector.
50
51
52       y    Pointer to the first element of the second source vector.
53
54
55       n    Number of elements in the vectors.
56
57

RETURN VALUES

59       Each  of the functions returns MLIB_SUCCESS if successful. Otherwise it
60       returns MLIB_FAILURE.
61

ATTRIBUTES

63       See attributes(5) for descriptions of the following attributes:
64
65
66
67
68       ┌─────────────────────────────┬─────────────────────────────┐
69       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
70       ├─────────────────────────────┼─────────────────────────────┤
71       │Interface Stability          │Committed                    │
72       ├─────────────────────────────┼─────────────────────────────┤
73       │MT-Level                     │MT-Safe                      │
74       └─────────────────────────────┴─────────────────────────────┘
75

SEE ALSO

77       attributes(5)
78
79
80
81SunOS 5.11                        2 Mar 2007mlib_VectorSumAbsDiff_U8_Sat(3MLIB)
Impressum