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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-04-11 13:07:28 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-04-11 13:07:28 +0400
commita3b491eca7c0c53bef453fdd829ac9f430bc758a (patch)
treea1dcec1f1bd616f40a7c56dffc0530ca863f50b4 /intern/cycles/util
parent1c84fb234fd2eb62454fc9d261124f3b048d454f (diff)
Fix cycles opencl compile issue, fminf/fmaxf() was defined both as macro and function.
Diffstat (limited to 'intern/cycles/util')
-rw-r--r--intern/cycles/util/util_math.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h
index 045fb5c6fa0..019dede07fa 100644
--- a/intern/cycles/util/util_math.h
+++ b/intern/cycles/util/util_math.h
@@ -38,6 +38,8 @@
CCL_NAMESPACE_BEGIN
+/* Float Pi variations */
+
#ifndef M_PI_F
#define M_PI_F ((float)3.14159265358979323846264338327950288)
#endif
@@ -69,6 +71,8 @@ CCL_NAMESPACE_BEGIN
#endif
+#ifndef __KERNEL_OPENCL__
+
__device_inline float fmaxf(float a, float b)
{
return (a > b)? a: b;
@@ -81,6 +85,8 @@ __device_inline float fminf(float a, float b)
#endif
+#endif
+
#ifndef __KERNEL_GPU__
__device_inline int max(int a, int b)