[Rawstudio-commit] r3062 - branches/rawstudio-ng-color/plugins/colorspace-transform

Klaus Post klauspost at gmail.com
Sat Jan 23 18:49:34 CET 2010


Author: post
Date: 2010-01-23 18:49:34 +0100 (Sat, 23 Jan 2010)
New Revision: 3062

Modified:
   branches/rawstudio-ng-color/plugins/colorspace-transform/colorspace_transform_sse2.c
Log:
Reduce pow precision slightly - should not have any significant influence on 8 bit output.

Modified: branches/rawstudio-ng-color/plugins/colorspace-transform/colorspace_transform_sse2.c
===================================================================
--- branches/rawstudio-ng-color/plugins/colorspace-transform/colorspace_transform_sse2.c	2010-01-23 17:48:32 UTC (rev 3061)
+++ branches/rawstudio-ng-color/plugins/colorspace-transform/colorspace_transform_sse2.c	2010-01-23 17:49:34 UTC (rev 3062)
@@ -50,7 +50,7 @@
 
 /* SSE2 Polynomial pow function from Mesa3d (MIT License) */
 
-#define EXP_POLY_DEGREE 3
+#define EXP_POLY_DEGREE 2
 
 #define POLY0(x, c0) _mm_set1_ps(c0)
 #define POLY1(x, c0, c1) _mm_add_ps(_mm_mul_ps(POLY0(x, c1), x), _mm_set1_ps(c0))
@@ -94,7 +94,7 @@
 }
 
 
-#define LOG_POLY_DEGREE 5
+#define LOG_POLY_DEGREE 4
 
 static inline __m128 
 log2f4(__m128 x)




More information about the Rawstudio-commit mailing list