Blender  V3.3
BLI_endian_defines.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 #pragma once
4 
9 /* NOTE: these names are historic and could use a more generic prefix.
10  * This could be done as part of a bigger refactor. */
11 
13 #if !defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)
14 # error Either __BIG_ENDIAN__ or __LITTLE_ENDIAN__ must be defined.
15 #endif
16 
17 #define L_ENDIAN 1
18 #define B_ENDIAN 0
19 
20 #ifdef __BIG_ENDIAN__
21 # define ENDIAN_ORDER B_ENDIAN
22 #else
23 # define ENDIAN_ORDER L_ENDIAN
24 #endif