From 5a19632475eda7958d93a9c9ce94fa3841fca7b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fl=C3=B6ssie?= Date: Wed, 25 Sep 2019 11:33:56 +0200 Subject: [PATCH] Fix non-SSE2 build --- rtengine/color.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtengine/color.h b/rtengine/color.h index 1031ca150..97835ba10 100644 --- a/rtengine/color.h +++ b/rtengine/color.h @@ -210,10 +210,12 @@ public: return r * workingspace[1][0] + g * workingspace[1][1] + b * workingspace[1][2]; } +#ifdef __SSE2__ static vfloat rgbLuminance(vfloat r, vfloat g, vfloat b, const vfloat workingspace[3]) { return r * workingspace[0] + g * workingspace[1] + b * workingspace[2]; } +#endif /** * @brief Convert red/green/blue to L*a*b