Blender  V3.3
endian_switch.c
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
7 #include "BLI_endian_switch.h"
8 #include "BLI_sys_types.h"
9 #include "BLI_utildefines.h"
10 
11 void BLI_endian_switch_int16_array(short *val, const int size)
12 {
13  if (size > 0) {
14  int i = size;
15  while (i--) {
17  }
18  }
19 }
20 
21 void BLI_endian_switch_uint16_array(unsigned short *val, const int size)
22 {
23  if (size > 0) {
24  int i = size;
25  while (i--) {
27  }
28  }
29 }
30 
31 void BLI_endian_switch_int32_array(int *val, const int size)
32 {
33  if (size > 0) {
34  int i = size;
35  while (i--) {
37  }
38  }
39 }
40 
41 void BLI_endian_switch_uint32_array(unsigned int *val, const int size)
42 {
43  if (size > 0) {
44  int i = size;
45  while (i--) {
47  }
48  }
49 }
50 
51 void BLI_endian_switch_float_array(float *val, const int size)
52 {
53  if (size > 0) {
54  int i = size;
55  while (i--) {
57  }
58  }
59 }
60 
62 {
63  if (size > 0) {
64  int i = size;
65  while (i--) {
67  }
68  }
69 }
70 
72 {
73  if (size > 0) {
74  int i = size;
75  while (i--) {
77  }
78  }
79 }
80 
81 void BLI_endian_switch_double_array(double *val, const int size)
82 {
83  if (size > 0) {
84  int i = size;
85  while (i--) {
87  }
88  }
89 }
BLI_INLINE void BLI_endian_switch_uint64(uint64_t *val) ATTR_NONNULL(1)
BLI_INLINE void BLI_endian_switch_uint16(unsigned short *val) ATTR_NONNULL(1)
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)
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)
BLI_INLINE void BLI_endian_switch_float(float *val) ATTR_NONNULL(1)
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition: btDbvt.cpp:52
void BLI_endian_switch_uint32_array(unsigned int *val, const int size)
Definition: endian_switch.c:41
void BLI_endian_switch_float_array(float *val, const int size)
Definition: endian_switch.c:51
void BLI_endian_switch_uint16_array(unsigned short *val, const int size)
Definition: endian_switch.c:21
void BLI_endian_switch_int16_array(short *val, const int size)
Definition: endian_switch.c:11
void BLI_endian_switch_double_array(double *val, const int size)
Definition: endian_switch.c:81
void BLI_endian_switch_int64_array(int64_t *val, const int size)
Definition: endian_switch.c:61
void BLI_endian_switch_uint64_array(uint64_t *val, const int size)
Definition: endian_switch.c:71
void BLI_endian_switch_int32_array(int *val, const int size)
Definition: endian_switch.c:31
__int64 int64_t
Definition: stdint.h:89
unsigned __int64 uint64_t
Definition: stdint.h:90