Blender  V2.93
BLI_endian_switch.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 /* Use a define instead of `#pragma once` because of `BLI_endian_switch_inline.h` */
18 #ifndef __BLI_ENDIAN_SWITCH_H__
19 #define __BLI_ENDIAN_SWITCH_H__
20 
25 #include "BLI_compiler_attrs.h"
26 #include "BLI_utildefines.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 /* BLI_endian_switch_inline.h */
34 BLI_INLINE void BLI_endian_switch_uint16(unsigned short *val) ATTR_NONNULL(1);
36 BLI_INLINE void BLI_endian_switch_uint32(unsigned int *val) ATTR_NONNULL(1);
41 
42 /* endian_switch.c */
43 void BLI_endian_switch_int16_array(short *val, const int size) ATTR_NONNULL(1);
44 void BLI_endian_switch_uint16_array(unsigned short *val, const int size) ATTR_NONNULL(1);
45 void BLI_endian_switch_int32_array(int *val, const int size) ATTR_NONNULL(1);
46 void BLI_endian_switch_uint32_array(unsigned int *val, const int size) ATTR_NONNULL(1);
47 void BLI_endian_switch_float_array(float *val, const int size) ATTR_NONNULL(1);
50 void BLI_endian_switch_double_array(double *val, const int size) ATTR_NONNULL(1);
51 
52 #ifdef __cplusplus
53 }
54 #endif
55 
57 
58 #endif /* __BLI_ENDIAN_SWITCH_H__ */
#define ATTR_NONNULL(...)
#define BLI_INLINE
BLI_INLINE void BLI_endian_switch_uint64(uint64_t *val) ATTR_NONNULL(1)
void BLI_endian_switch_double_array(double *val, const int size) ATTR_NONNULL(1)
Definition: endian_switch.c:95
void BLI_endian_switch_int32_array(int *val, const int size) ATTR_NONNULL(1)
Definition: endian_switch.c:45
BLI_INLINE void BLI_endian_switch_uint16(unsigned short *val) ATTR_NONNULL(1)
void BLI_endian_switch_uint64_array(uint64_t *val, const int size) ATTR_NONNULL(1)
Definition: endian_switch.c:85
void BLI_endian_switch_int64_array(int64_t *val, const int size) ATTR_NONNULL(1)
Definition: endian_switch.c:75
BLI_INLINE void BLI_endian_switch_int64(int64_t *val) ATTR_NONNULL(1)
BLI_INLINE void BLI_endian_switch_double(double *val) ATTR_NONNULL(1)
void BLI_endian_switch_uint16_array(unsigned short *val, const int size) ATTR_NONNULL(1)
Definition: endian_switch.c:35
void BLI_endian_switch_uint32_array(unsigned int *val, const int size) ATTR_NONNULL(1)
Definition: endian_switch.c:55
void BLI_endian_switch_float_array(float *val, const int size) ATTR_NONNULL(1)
Definition: endian_switch.c:65
BLI_INLINE void BLI_endian_switch_int32(int *val) ATTR_NONNULL(1)
BLI_INLINE void BLI_endian_switch_uint32(unsigned int *val) ATTR_NONNULL(1)
BLI_INLINE void BLI_endian_switch_int16(short *val) ATTR_NONNULL(1)
void BLI_endian_switch_int16_array(short *val, const int size) ATTR_NONNULL(1)
Definition: endian_switch.c:25
BLI_INLINE void BLI_endian_switch_float(float *val) ATTR_NONNULL(1)
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition: btDbvt.cpp:52
__int64 int64_t
Definition: stdint.h:92
unsigned __int64 uint64_t
Definition: stdint.h:93