API Reference Manual  1.45.0
api/spec/byteorder.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright (c) 2014-2018 Linaro Limited
3  */
4 
11 #ifndef ODP_API_SPEC_BYTEORDER_H_
12 #define ODP_API_SPEC_BYTEORDER_H_
13 #include <odp/visibility_begin.h>
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
70 /*
71  * Big Endian -> CPU byte order:
72  */
73 
80 
87 
94 
95 /*
96  * CPU byte order -> Big Endian:
97  */
98 
105 
112 
119 
120 /*
121  * Little Endian -> CPU byte order:
122  */
123 
130 
137 
144 
145 /*
146  * CPU byte order -> Little Endian:
147  */
148 
155 
162 
169 
174 #ifdef __cplusplus
175 }
176 #endif
177 
178 #include <odp/visibility_end.h>
179 #endif
odp_u64le_t odp_cpu_to_le_64(uint64_t cpu64)
Convert cpu native uint64_t to 64bit little endian.
uint32_t odp_u32be_t
unsigned 32bit big endian
odp_u16le_t odp_cpu_to_le_16(uint16_t cpu16)
Convert cpu native uint16_t to 16bit little endian.
odp_u16be_t odp_cpu_to_be_16(uint16_t cpu16)
Convert cpu native uint16_t to 16bit big endian.
odp_u64be_t odp_cpu_to_be_64(uint64_t cpu64)
Convert cpu native uint64_t to 64bit big endian.
uint32_t odp_u32le_t
unsigned 32bit little endian
uint32_t odp_le_to_cpu_32(odp_u32le_t le32)
Convert 32bit little endian to cpu native uint32_t.
uint16_t odp_be_to_cpu_16(odp_u16be_t be16)
Convert 16bit big endian to cpu native uint16_t.
uint64_t odp_be_to_cpu_64(odp_u64be_t be64)
Convert 64bit big endian to cpu native uint64_t.
odp_u32le_t odp_cpu_to_le_32(uint32_t cpu32)
Convert cpu native uint32_t to 32bit little endian.
uint16_t odp_u16be_t
unsigned 16bit big endian
uint16_t odp_le_to_cpu_16(odp_u16le_t le16)
Convert 16bit little endian to cpu native uint16_t.
uint16_t odp_u16le_t
unsigned 16bit little endian
uint64_t odp_le_to_cpu_64(odp_u64le_t le64)
Convert 64bit little endian to cpu native uint64_t.
odp_u32be_t odp_cpu_to_be_32(uint32_t cpu32)
Convert cpu native uint32_t to 32bit big endian.
uint64_t odp_u64be_t
unsigned 64bit big endian
uint64_t odp_u64le_t
unsigned 64bit little endian
uint32_t odp_be_to_cpu_32(odp_u32be_t be32)
Convert 32bit big endian to cpu native uint32_t.