[Pixman] [PATCH v8 08/14] pixman-filter: don't range-check impulse filter
spitzak at gmail.com
spitzak at gmail.com
Mon Jan 4 21:48:55 PST 2016
From: Bill Spitzak <spitzak at gmail.com>
The other filters don't range-check, so there is no need for this
one to either. It is only called with x==0.
v1: initial version
Signed-off-by: Bill Spitzak <spitzak at gmail.com>
---
pixman/pixman-filter.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pixman/pixman-filter.c b/pixman/pixman-filter.c
index d057782..8bbf394 100644
--- a/pixman/pixman-filter.c
+++ b/pixman/pixman-filter.c
@@ -45,7 +45,7 @@ typedef struct
static double
impulse_kernel (double x)
{
- return (x == 0.0)? 1.0 : 0.0;
+ return 1;
}
static double
--
1.9.1
More information about the Pixman
mailing list