aboutsummaryrefslogtreecommitdiffstats
path: root/libglitter_per_channel_desaturate_double.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2023-01-28 09:19:05 +0100
committerMattias Andrée <maandree@kth.se>2023-01-28 09:31:28 +0100
commit575e3ad31dd8ccf2afdd5c8a8d2dbf8d57241c5d (patch)
tree45b154e54eb7caa0300e5176237cb84257da138e /libglitter_per_channel_desaturate_double.c
parentlibglitter.7: add application usage section (diff)
downloadlibglitter-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.c8
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