Blender V4.3
endian_switch.c
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
9#include "BLI_endian_switch.h"
10#include "BLI_sys_types.h"
11#include "BLI_utildefines.h"
12
13void BLI_endian_switch_int16_array(short *val, const int size)
14{
15 if (size > 0) {
16 int i = size;
17 while (i--) {
19 }
20 }
21}
22
23void BLI_endian_switch_uint16_array(ushort *val, const int size)
24{
25 if (size > 0) {
26 int i = size;
27 while (i--) {
29 }
30 }
31}
32
33void BLI_endian_switch_int32_array(int *val, const int size)
34{
35 if (size > 0) {
36 int i = size;
37 while (i--) {
39 }
40 }
41}
42
43void BLI_endian_switch_uint32_array(uint *val, const int size)
44{
45 if (size > 0) {
46 int i = size;
47 while (i--) {
49 }
50 }
51}
52
53void BLI_endian_switch_float_array(float *val, const int size)
54{
55 if (size > 0) {
56 int i = size;
57 while (i--) {
59 }
60 }
61}
62
63void BLI_endian_switch_int64_array(int64_t *val, const int size)
64{
65 if (size > 0) {
66 int i = size;
67 while (i--) {
69 }
70 }
71}
72
73void BLI_endian_switch_uint64_array(uint64_t *val, const int size)
74{
75 if (size > 0) {
76 int i = size;
77 while (i--) {
79 }
80 }
81}
82
83void BLI_endian_switch_double_array(double *val, const int size)
84{
85 if (size > 0) {
86 int i = size;
87 while (i--) {
89 }
90 }
91}
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 short ushort
unsigned int uint
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)
__int64 int64_t
Definition stdint.h:89
unsigned __int64 uint64_t
Definition stdint.h:90