[gegl/samplers] sampler: 1<<level = pow(2,level)
- From: Nicolas Robidoux <nrobidoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/samplers] sampler: 1<<level = pow(2,level)
- Date: Mon, 27 Jun 2011 20:59:36 +0000 (UTC)
commit 8119fb29070fabfdc8e57b866393301d9dae5a94
Author: Nicolas Robidoux <nicolas robidoux gmail com>
Date: Mon Jun 27 16:59:32 2011 -0400
sampler: 1<<level = pow(2,level)
gegl/buffer/gegl-sampler.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gegl/buffer/gegl-sampler.c b/gegl/buffer/gegl-sampler.c
index d540477..6d522a5 100644
--- a/gegl/buffer/gegl-sampler.c
+++ b/gegl/buffer/gegl-sampler.c
@@ -392,7 +392,7 @@ gegl_sampler_get_from_mipmap (GeglSampler *const sampler,
gint dy;
gint sof;
- const gdouble scale = 1. / (pow(2., (gdouble)level));
+ const gdouble scale = 1. / ( (gdouble) (1<<level) );
const gint bpp =
babl_format_get_bytes_per_pixel (sampler->interpolate_format);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]