[babl] util: add float versions of non optimized TRC functions



commit 17062bc2caa9d617a573e884c0c8d2b53b007635
Author: Øyvind Kolås <pippin gimp org>
Date:   Fri Jan 13 12:32:10 2017 +0100

    util: add float versions of non optimized TRC functions

 babl/base/util.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/babl/base/util.h b/babl/base/util.h
index 3472523..2d346b4 100644
--- a/babl/base/util.h
+++ b/babl/base/util.h
@@ -105,4 +105,7 @@ babl_gamma_2_2_to_linearf (float value)
 #else
   #define linear_to_gamma_2_2(value) (pow((value), (1.0F/2.2F)))
   #define gamma_2_2_to_linear(value) (pow((value), 2.2F))
+
+  #define babl_linear_to_gamma_2_2f(value) (powf((value), (1.0f/2.2f)))
+  #define babl_gamma_2_2_to_linearf(value) (powf((value), 2.2f))
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]