diff options
author | Mattias Andrée <maandree@kth.se> | 2023-01-28 09:19:05 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2023-01-28 09:31:28 +0100 |
commit | 575e3ad31dd8ccf2afdd5c8a8d2dbf8d57241c5d (patch) | |
tree | 45b154e54eb7caa0300e5176237cb84257da138e /libglitter_per_channel_desaturate_double.c | |
parent | libglitter.7: add application usage section (diff) | |
download | libglitter-575e3ad31dd8ccf2afdd5c8a8d2dbf8d57241c5d.tar.gz libglitter-575e3ad31dd8ccf2afdd5c8a8d2dbf8d57241c5d.tar.bz2 libglitter-575e3ad31dd8ccf2afdd5c8a8d2dbf8d57241c5d.tar.xz |
Fix warnings, add restrict, and add function attributes1.0
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libglitter_per_channel_desaturate_double.c | 8 |
1 files changed, 1 insertions, 7 deletions
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 |