aboutsummaryrefslogtreecommitdiffstats
path: root/conversions.h
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-06-20 22:05:37 +0200
committerMattias Andrée <maandree@kth.se>2017-06-20 22:05:37 +0200
commitcf57bc18de9d5d09cba26fae079e1fe3f722d981 (patch)
tree4e85b037b91b26075f83929337c44365985ff153 /conversions.h
parentRemove noop (diff)
downloadlibcolour-cf57bc18de9d5d09cba26fae079e1fe3f722d981.tar.gz
libcolour-cf57bc18de9d5d09cba26fae079e1fe3f722d981.tar.bz2
libcolour-cf57bc18de9d5d09cba26fae079e1fe3f722d981.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'conversions.h')
-rw-r--r--conversions.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/conversions.h b/conversions.h
index 494a666..25b3ba7 100644
--- a/conversions.h
+++ b/conversions.h
@@ -105,12 +105,12 @@
TYPE WX__ = (TO_WHITE_X), WY__ = (TO_WHITE_Y), WZ__ = (TO_WHITE_Z);\
TYPE X__ = (FROM_X), Y__ = (FROM_Y), Z__ = (FROM_Z);\
TYPE L2__, L__, u__, v__, t__;\
- t__ = WX__ + 15 * WY__ + 3 * WZ__;\
- u__ = 4 * WX__ / t__;\
- v__ = 9 * WY__ / t__;\
t__ = X__ + 15 * Y__ + 3 * Z__;\
- u__ = 4 * X__ / t__ - u__;\
- v__ = 9 * Y__ / t__ - v__;\
+ u__ = 4 * X__ / t__;\
+ v__ = 9 * Y__ / t__;\
+ t__ = WX__ + 15 * WY__ + 3 * WZ__;\
+ u__ -= 4 * WX__ / t__;\
+ v__ -= 9 * WY__ / t__;\
L__ = Y__ / WY__;\
L2__ = L__ * 24389;\
L__ = L2__ <= 216 ? L2__ / 27 : xcbrt(L__) * 116 - 16;\