aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/skcms/src/Transform_inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/skcms/src/Transform_inl.h')
-rw-r--r--third_party/skcms/src/Transform_inl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/skcms/src/Transform_inl.h b/third_party/skcms/src/Transform_inl.h
index 529780ab7b..debdf68a88 100644
--- a/third_party/skcms/src/Transform_inl.h
+++ b/third_party/skcms/src/Transform_inl.h
@@ -249,7 +249,7 @@ SI ATTR F NS(apply_transfer_function_)(const skcms_TransferFunction* tf, F x) {
SI ATTR F NS(apply_poly_tf_)(const skcms_PolyTF* tf, F x) {
// TODO: handle x<0
return (F)if_then_else(x < tf->D, tf->C*x
- , tf->A*x*x*x + tf->B*x*x + (1 - tf->A - tf->B));
+ , tf->A*(x*x*x-1) + tf->B*(x*x-1) + 1);
}
#define apply_poly_tf NS(apply_poly_tf_)