From 575e3ad31dd8ccf2afdd5c8a8d2dbf8d57241c5d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 28 Jan 2023 09:19:05 +0100 Subject: Fix warnings, add restrict, and add function attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libglitter_per_channel_desaturate_double.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libglitter_per_channel_desaturate_double.c') diff --git a/libglitter_per_channel_desaturate_double.c b/libglitter_per_channel_desaturate_double.c index a9bafb9..85282b6 100644 --- a/libglitter_per_channel_desaturate_double.c +++ b/libglitter_per_channel_desaturate_double.c @@ -3,13 +3,8 @@ #ifndef TEST -#if defined(__GNUC__) && !defined(__clang__) -# pragma GCC diagnostic ignored "-Wunsuffixed-float-constants" -#endif - - void -libglitter_per_channel_desaturate_double(double **rasters, size_t nrasters, size_t rowsize, size_t cellsize, +libglitter_per_channel_desaturate_double(double *restrict *rasters, size_t nrasters, size_t rowsize, size_t cellsize, size_t width, size_t height, const double *restrict saturations, const double *restrict primary_ys) { @@ -54,7 +49,6 @@ libglitter_per_channel_desaturate_double(double **rasters, size_t nrasters, size #define TOLERANCE 0.0001 -#define TOL 4 #define RY 0.212673370378408277403536885686 #define GY 0.715151730491031756287156895269 -- cgit v1.2.3-70-g09d2