2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2016 Joyent, Inc.
19 .Nd definitions for endian routines
25 header defines functions and macros focused on converting data between
26 the host machines native byte order and big or little-endian values.
27 While the manual page details the macros defined by
29 the functions are documented separately in
31 More information on endianness and a general background on the topic can
37 header defines the following macros:
40 A constant used to indicate a little-endian integer.
41 It is always defined, regardless of the actual endianess of the underlying
43 This macro should be used to compare against the
47 A constant used to indicate a big-endian integer.
48 It is always defined, regardless of the actual endianess of the underlying
50 This macro should be used to compare against the
54 A constant used to indicate the endianness used for four byte values on
56 It is always defined, regardless of the actual endianess of the underlying
58 This macro should be used to compare against the
68 At this time, no supported architectures use the byte order indicated by
73 To determine the byte order of a system, one may compare the
75 to one of the aforementioned macros.
78 In addition to the routines provided by this header, standardized
79 functions may be found in
83 also defines additional pre-processor symbols to determine the current
84 endianness of the system.
85 .Sh INTERFACE STABILITY