From 50543d881872012f461a8e0cdb3879cc9043b794 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Fri, 13 Nov 2009 11:53:12 -0500 Subject: [PATCH] Backout 8a790e81279e (bug 528322) because wince doesn't have powf. The link error was obscured by other errors when I ran this on try... --- gfx/qcms/transform.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/qcms/transform.c b/gfx/qcms/transform.c index 2ffeb456267c..d9fd0897e616 100644 --- a/gfx/qcms/transform.c +++ b/gfx/qcms/transform.c @@ -64,7 +64,7 @@ void compute_curve_gamma_table_type1(float gamma_table[256], double gamma) { unsigned int i; for (i = 0; i < 256; i++) { - gamma_table[i] = powf(i/255.f, gamma); + gamma_table[i] = pow(i/255., gamma); } } @@ -990,7 +990,7 @@ static void compute_precache_pow(uint8_t *output, float gamma) uint32_t v = 0; for (v = 0; v <= 0xffff; v++) { //XXX: don't do integer/float conversion... and round? - output[v] = 255.f * powf(v/65535.f, gamma); + output[v] = 255. * pow(v/65535., gamma); } } @@ -1017,7 +1017,7 @@ qcms_bool compute_precache(struct curveType *trc, uint8_t *output) if (trc->count == 0) { compute_precache_linear(output); } else if (trc->count == 1) { - compute_precache_pow(output, 1.f/u8Fixed8Number_to_float(trc->data[0])); + compute_precache_pow(output, 1./u8Fixed8Number_to_float(trc->data[0])); } else { uint16_t *inverted; int inverted_size = trc->count;