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:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-08-24 15:36:18 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-08-24 15:36:18 +0300
commit658a9c6cf5228efafd9e7b8d5282f09019f4c4f2 (patch)
tree05815144ef68abe6d983bd9c8d282406cea074e8 /intern/cycles/util
parente92e90c30e148bf216fbf9829cdc4a7058cfd6f8 (diff)
Cycles: Cleanup, style
I wouldn't mind changing style to have space after keyword, but there was no official code style change proposed.
Diffstat (limited to 'intern/cycles/util')
-rw-r--r--intern/cycles/util/util_math_intersect.h6
-rw-r--r--intern/cycles/util/util_system.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/intern/cycles/util/util_math_intersect.h b/intern/cycles/util/util_math_intersect.h
index 61ddcc38f50..b5fbb24091f 100644
--- a/intern/cycles/util/util_math_intersect.h
+++ b/intern/cycles/util/util_math_intersect.h
@@ -136,10 +136,10 @@ ccl_device_forceinline bool ray_triangle_intersect(
#if defined(__KERNEL_SSE2__) && defined (__KERNEL_SSE__)
int uvw_sign = movemask(UVWW) & 0x7;
- if (uvw_sign != 0)
- {
- if (uvw_sign != 0x7)
+ if(uvw_sign != 0) {
+ if(uvw_sign != 0x7) {
return false;
+ }
}
#else
const float minUVW = min(U, min(V, W));
diff --git a/intern/cycles/util/util_system.cpp b/intern/cycles/util/util_system.cpp
index 8ae5b63b2f9..2428b0b2989 100644
--- a/intern/cycles/util/util_system.cpp
+++ b/intern/cycles/util/util_system.cpp
@@ -300,7 +300,7 @@ size_t system_physical_ram()
#elif defined(__APPLE__)
uint64_t ram = 0;
size_t len = sizeof(ram);
- if (sysctlbyname("hw.memsize", &ram, &len, NULL, 0) == 0) {
+ if(sysctlbyname("hw.memsize", &ram, &len, NULL, 0) == 0) {
return ram;
}
return 0;