1mlib_VectorReverseByteOrderm_eSd1i6a_LSi1b6(L3imMblLriIabBr_)yVeFcutnocrtRieovnesrseByteOrder_S16_S16(3MLIB)
2
3
4
6 mlib_VectorReverseByteOrder_S16_S16, mlib_VectorReverseByte‐
7 Order_U16_U16, mlib_VectorReverseByteOrder_S32_S32, mlib_VectorReverse‐
8 ByteOrder_U32_U32, mlib_VectorReverseByteOrder_S64_S64, mlib_VectorRe‐
9 verseByteOrder_U64_U64, mlib_VectorReverseByteOrder_F32_F32, mlib_Vec‐
10 torReverseByteOrder_D64_D64 - reverse byte order of vector
11
13 cc [ flag... ] file... -lmlib [ library... ]
14 #include <mlib.h>
15
16 mlib_status mlib_VectorReverseByteOrder_S16_S16(mlib_s16 *z,
17 const mlib_s16 *x, mlib_s32 n);
18
19
20 mlib_status mlib_VectorReverseByteOrder_U16_U16(mlib_u16 *z,
21 const mlib_u16 *x, mlib_s32 n);
22
23
24 mlib_status mlib_VectorReverseByteOrder_S32_S32(mlib_s32 *z,
25 const mlib_s32 *x, mlib_s32 n);
26
27
28 mlib_status mlib_VectorReverseByteOrder_U32_U32(mlib_u32 *z,
29 const mlib_u32 *x, mlib_s32 n);
30
31
32 mlib_status mlib_VectorReverseByteOrder_S64_S64(mlib_s64 *z,
33 const mlib_s64 *x, mlib_s32 n);
34
35
36 mlib_status mlib_VectorReverseByteOrder_U64_U64(mlib_u64 *z,
37 const mlib_u64 *x, mlib_s32 n);
38
39
40 mlib_status mlib_VectorReverseByteOrder_F32_F32(mlib_f32 *z,
41 const mlib_f32 *x, mlib_s32 n);
42
43
44 mlib_status mlib_VectorReverseByteOrder_D64_D64(mlib_d64 *z,
45 const mlib_d64 *x, mlib_s32 n);
46
47
49 Each of these functions changes the encoding of each element from big
50 endian to little endian, or from little endian to big endian.
51
52
53 It copies and reverses the byte order of each element of the input vec‐
54 tor into the output vector.
55
57 Each of the functions takes the following arguments:
58
59 z Pointer to the output vector.
60
61
62 x Pointer to input vector.
63
64
65 n Number of elements in the vectors.
66
67
69 Each of the functions returns MLIB_SUCCESS if successful. Otherwise it
70 returns MLIB_FAILURE.
71
73 See attributes(5) for descriptions of the following attributes:
74
75
76
77
78 ┌─────────────────────────────┬─────────────────────────────┐
79 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
80 ├─────────────────────────────┼─────────────────────────────┤
81 │Interface Stability │Committed │
82 ├─────────────────────────────┼─────────────────────────────┤
83 │MT-Level │MT-Safe │
84 └─────────────────────────────┴─────────────────────────────┘
85
87 mlib_VectorReverseByteOrder(3MLIB), mlib_VectorReverseByte‐
88 Order_Inp(3MLIB), mlib_VectorReverseByteOrder_S16(3MLIB), attributes(5)
89
90
91
92SunOS 5.11 2 Mmalrib2_0V0e7ctorReverseByteOrder_S16_S16(3MLIB)