Blender V5.0
endian_switch.cc
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
8
9#include "BLI_endian_switch.h"
10#include "BLI_sys_types.h"
11
12void BLI_endian_switch_int16_array(short *val, const int size)
13{
14 if (size > 0) {
15 int i = size;
16 while (i--) {
18 }
19 }
20}
21
23{
24 if (size > 0) {
25 int i = size;
26 while (i--) {
28 }
29 }
30}
31
32void BLI_endian_switch_int32_array(int *val, const int size)
33{
34 if (size > 0) {
35 int i = size;
36 while (i--) {
38 }
39 }
40}
41
43{
44 if (size > 0) {
45 int i = size;
46 while (i--) {
48 }
49 }
50}
51
52void BLI_endian_switch_float_array(float *val, const int size)
53{
54 if (size > 0) {
55 int i = size;
56 while (i--) {
58 }
59 }
60}
61
63{
64 if (size > 0) {
65 int i = size;
66 while (i--) {
68 }
69 }
70}
71
73{
74 if (size > 0) {
75 int i = size;
76 while (i--) {
78 }
79 }
80}
81
82void BLI_endian_switch_double_array(double *val, const int size)
83{
84 if (size > 0) {
85 int i = size;
86 while (i--) {
88 }
89 }
90}
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)
unsigned int uint
unsigned short ushort
long long int int64_t
unsigned long long int uint64_t
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52
void BLI_endian_switch_float_array(float *val, const int size)
void BLI_endian_switch_int16_array(short *val, const int size)
void BLI_endian_switch_uint32_array(uint *val, const int size)
void BLI_endian_switch_double_array(double *val, const int size)
void BLI_endian_switch_int64_array(int64_t *val, const int size)
void BLI_endian_switch_uint64_array(uint64_t *val, const int size)
void BLI_endian_switch_int32_array(int *val, const int size)
void BLI_endian_switch_uint16_array(ushort *val, const int size)
i
Definition text_draw.cc:230