From 2f52e4e007c5b0be86919b71dbbb0e267602a129 Mon Sep 17 00:00:00 2001 From: Nicolas Robidoux Date: Wed, 12 Jan 2011 20:45:16 +0000 Subject: [PATCH] redundant fast pseudo floor in interpolate.c --- libvips/resample/interpolate.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/libvips/resample/interpolate.c b/libvips/resample/interpolate.c index 2a3b4431..1aaf9e63 100644 --- a/libvips/resample/interpolate.c +++ b/libvips/resample/interpolate.c @@ -69,29 +69,6 @@ * A number of image interpolators. */ -/* - * FAST_PSEUDO_FLOOR is a floor and floorf replacement which has been - * found to be faster on several linux boxes than the library - * version. It returns the floor of its argument unless the argument - * is a negative integer, in which case it returns one less than the - * floor. For example: - * - * FAST_PSEUDO_FLOOR(0.5) = 0 - * - * FAST_PSEUDO_FLOOR(0.) = 0 - * - * FAST_PSEUDO_FLOOR(-.5) = -1 - * - * as expected, but - * - * FAST_PSEUDO_FLOOR(-1.) = -2 - * - * The locations of the discontinuities of FAST_PSEUDO_FLOOR are the - * same as floor and floorf; it is just that at negative integers the - * function is discontinuous on the right instead of the left. - */ -#define FAST_PSEUDO_FLOOR(x) ( (int)(x) - ( (x) < 0. ) ) - G_DEFINE_ABSTRACT_TYPE( VipsInterpolate, vips_interpolate, VIPS_TYPE_OBJECT ); #ifdef DEBUG