From 2d346f670e6bddc5ba9ff81b6a17bc4782c0adbd Mon Sep 17 00:00:00 2001 From: heckflosse Date: Thu, 14 Jul 2016 20:56:14 +0200 Subject: [PATCH] Fix build issue with clang --- rtengine/curves.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rtengine/curves.h b/rtengine/curves.h index a06502c71..348772075 100644 --- a/rtengine/curves.h +++ b/rtengine/curves.h @@ -249,7 +249,11 @@ public: #ifdef __SSE2__ static inline vfloat igamma (vfloat x, vfloat gamma, vfloat start, vfloat slope, vfloat mul, vfloat add) { +#if !defined(__clang__) return (x <= start * slope ? x / slope : xexpf(xlogf((x + add) / mul) * gamma) ); +#else + return vself(vmaskf_le(x, start * slope), x / slope, xexpf(xlogf((x + add) / mul) * gamma)); +#endif } #endif static inline float hlcurve (const float exp_scale, const float comp, const float hlrange, float level)