[babl] babl_pow_24f(): add missing float suffix
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [babl] babl_pow_24f(): add missing float suffix
- Date: Tue, 14 Nov 2017 11:36:11 +0000 (UTC)
commit 1981dfa8d00b4cd4ba19bf15fca676c39dade79d
Author: Edward E <develinthedetail gmail com>
Date: Mon Nov 13 22:43:29 2017 -0600
babl_pow_24f(): add missing float suffix
babl/base/pow-24.c | 2 +-
babl/base/pow-24.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/babl/base/pow-24.c b/babl/base/pow-24.c
index 5a4f0ad..4587bf1 100644
--- a/babl/base/pow-24.c
+++ b/babl/base/pow-24.c
@@ -120,7 +120,7 @@ babl_pow_24f (float x)
}
y = init_newtonf (x, -1.f/5, 0.9953189663f, 0.9594345146f, 0.6742970332f);
for (i = 0; i < 3; i++)
- y = (1.f+1.f/5)*y - ((1./5)*x*(y*y))*((y*y)*(y*y));
+ y = (1.f+1.f/5)*y - ((1.f/5)*x*(y*y))*((y*y)*(y*y));
x *= y;
return x*x*x;
}
diff --git a/babl/base/pow-24.h b/babl/base/pow-24.h
index ed42cfe..3ea6984 100644
--- a/babl/base/pow-24.h
+++ b/babl/base/pow-24.h
@@ -151,7 +151,7 @@ babl_pow_24f (float x)
}
y = init_newtonf (x, -1.f/5, 0.9953189663f, 0.9594345146f, 0.6742970332f);
for (i = 0; i < 3; i++)
- y = (1.f+1.f/5)*y - ((1./5)*x*(y*y))*((y*y)*(y*y));
+ y = (1.f+1.f/5)*y - ((1.f/5)*x*(y*y))*((y*y)*(y*y));
x *= y;
return x*x*x;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]