Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/intern/endian_switch.c')
-rw-r--r--source/blender/blenlib/intern/endian_switch.c97
1 files changed, 48 insertions, 49 deletions
diff --git a/source/blender/blenlib/intern/endian_switch.c b/source/blender/blenlib/intern/endian_switch.c
index cc2ffa864f5..09d1d3d0774 100644
--- a/source/blender/blenlib/intern/endian_switch.c
+++ b/source/blender/blenlib/intern/endian_switch.c
@@ -24,81 +24,80 @@
void BLI_endian_switch_int16_array(short *val, const int size)
{
- if (size > 0) {
- int i = size;
- while (i--) {
- BLI_endian_switch_int16(val++);
- }
- }
+ if (size > 0) {
+ int i = size;
+ while (i--) {
+ BLI_endian_switch_int16(val++);
+ }
+ }
}
void BLI_endian_switch_uint16_array(unsigned short *val, const int size)
{
- if (size > 0) {
- int i = size;
- while (i--) {
- BLI_endian_switch_uint16(val++);
- }
- }
+ if (size > 0) {
+ int i = size;
+ while (i--) {
+ BLI_endian_switch_uint16(val++);
+ }
+ }
}
void BLI_endian_switch_int32_array(int *val, const int size)
{
- if (size > 0) {
- int i = size;
- while (i--) {
- BLI_endian_switch_int32(val++);
- }
- }
+ if (size > 0) {
+ int i = size;
+ while (i--) {
+ BLI_endian_switch_int32(val++);
+ }
+ }
}
void BLI_endian_switch_uint32_array(unsigned int *val, const int size)
{
- if (size > 0) {
- int i = size;
- while (i--) {
- BLI_endian_switch_uint32(val++);
- }
- }
+ if (size > 0) {
+ int i = size;
+ while (i--) {
+ BLI_endian_switch_uint32(val++);
+ }
+ }
}
void BLI_endian_switch_float_array(float *val, const int size)
{
- if (size > 0) {
- int i = size;
- while (i--) {
- BLI_endian_switch_float(val++);
- }
- }
+ if (size > 0) {
+ int i = size;
+ while (i--) {
+ BLI_endian_switch_float(val++);
+ }
+ }
}
void BLI_endian_switch_int64_array(int64_t *val, const int size)
{
- if (size > 0) {
- int i = size;
- while (i--) {
- BLI_endian_switch_int64(val++);
- }
- }
+ if (size > 0) {
+ int i = size;
+ while (i--) {
+ BLI_endian_switch_int64(val++);
+ }
+ }
}
void BLI_endian_switch_uint64_array(uint64_t *val, const int size)
{
- if (size > 0) {
- int i = size;
- while (i--) {
- BLI_endian_switch_uint64(val++);
- }
- }
+ if (size > 0) {
+ int i = size;
+ while (i--) {
+ BLI_endian_switch_uint64(val++);
+ }
+ }
}
-
void BLI_endian_switch_double_array(double *val, const int size)
{
- if (size > 0) {
- int i = size;
- while (i--) {
- BLI_endian_switch_double(val++);
- }
- }
+ if (size > 0) {
+ int i = size;
+ while (i--) {
+ BLI_endian_switch_double(val++);
+ }
+ }
}