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:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 07:17:24 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 07:21:24 +0300
commite12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch)
tree8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/blenlib/intern/endian_switch.c
parentb3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff)
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
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++);
+ }
+ }
}