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/blenfont/intern/blf_util.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/blenfont/intern/blf_util.c')
-rw-r--r--source/blender/blenfont/intern/blf_util.c37
1 files changed, 18 insertions, 19 deletions
diff --git a/source/blender/blenfont/intern/blf_util.c b/source/blender/blenfont/intern/blf_util.c
index d479861b897..e55759199a2 100644
--- a/source/blender/blenfont/intern/blf_util.c
+++ b/source/blender/blenfont/intern/blf_util.c
@@ -23,7 +23,6 @@
* Internal utility API for BLF.
*/
-
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -34,26 +33,26 @@
unsigned int blf_next_p2(unsigned int x)
{
- x -= 1;
- x |= (x >> 16);
- x |= (x >> 8);
- x |= (x >> 4);
- x |= (x >> 2);
- x |= (x >> 1);
- x += 1;
- return x;
+ x -= 1;
+ x |= (x >> 16);
+ x |= (x >> 8);
+ x |= (x >> 4);
+ x |= (x >> 2);
+ x |= (x >> 1);
+ x += 1;
+ return x;
}
unsigned int blf_hash(unsigned int val)
{
- unsigned int key;
-
- key = val;
- key += ~(key << 16);
- key ^= (key >> 5);
- key += (key << 3);
- key ^= (key >> 13);
- key += ~(key << 9);
- key ^= (key >> 17);
- return key % 257;
+ unsigned int key;
+
+ key = val;
+ key += ~(key << 16);
+ key ^= (key >> 5);
+ key += (key << 3);
+ key ^= (key >> 13);
+ key += ~(key << 9);
+ key ^= (key >> 17);
+ return key % 257;
}