[gegl] operations: do not include <math.h> directly



commit 7e0e8a565f9c3a094d719ffbc019f7f9b0066c68
Author: Øyvind Kolås <pippin gimp org>
Date:   Thu May 28 21:26:11 2020 +0200

    operations: do not include <math.h> directly
    
    It is now transitively included by gegl-op.h, which ensures it is
    included before gegl-math.h

 operations/common-cxx/distance-transform.cc             | 1 -
 operations/common-cxx/focus-blur.c                      | 1 -
 operations/common-cxx/piecewise-blend.cc                | 1 -
 operations/common-cxx/variable-blur.c                   | 1 -
 operations/common-cxx/warp.cc                           | 1 -
 operations/common-gpl3+/antialias.c                     | 1 -
 operations/common-gpl3+/apply-lens.c                    | 1 -
 operations/common-gpl3+/bayer-matrix.c                  | 1 -
 operations/common-gpl3+/bump-map.c                      | 1 -
 operations/common-gpl3+/cartoon.c                       | 1 -
 operations/common-gpl3+/channel-mixer.c                 | 1 -
 operations/common-gpl3+/color-to-alpha.c                | 1 -
 operations/common-gpl3+/cubism.c                        | 1 -
 operations/common-gpl3+/deinterlace.c                   | 1 -
 operations/common-gpl3+/diffraction-patterns.c          | 1 -
 operations/common-gpl3+/displace.c                      | 1 -
 operations/common-gpl3+/edge-laplace.c                  | 1 -
 operations/common-gpl3+/edge.c                          | 1 -
 operations/common-gpl3+/emboss.c                        | 1 -
 operations/common-gpl3+/fractal-explorer.c              | 1 -
 operations/common-gpl3+/fractal-trace.c                 | 1 -
 operations/common-gpl3+/gaussian-blur-selective.c       | 1 -
 operations/common-gpl3+/illusion.c                      | 1 -
 operations/common-gpl3+/lens-distortion.c               | 1 -
 operations/common-gpl3+/lens-flare.c                    | 1 -
 operations/common-gpl3+/linear-sinusoid.c               | 1 -
 operations/common-gpl3+/maze.c                          | 1 -
 operations/common-gpl3+/mosaic.c                        | 1 -
 operations/common-gpl3+/motion-blur-circular.c          | 1 -
 operations/common-gpl3+/motion-blur-zoom.c              | 1 -
 operations/common-gpl3+/noise-solid.c                   | 1 -
 operations/common-gpl3+/oilify.c                        | 1 -
 operations/common-gpl3+/photocopy.c                     | 1 -
 operations/common-gpl3+/polar-coordinates.c             | 1 -
 operations/common-gpl3+/red-eye-removal.c               | 1 -
 operations/common-gpl3+/ripple.c                        | 1 -
 operations/common-gpl3+/shadows-highlights-correction.c | 1 -
 operations/common-gpl3+/sinus.c                         | 1 -
 operations/common-gpl3+/softglow.c                      | 1 -
 operations/common-gpl3+/spiral.c                        | 1 -
 operations/common-gpl3+/supernova.c                     | 1 -
 operations/common-gpl3+/tile-glass.c                    | 1 -
 operations/common-gpl3+/tile-paper.c                    | 1 -
 operations/common-gpl3+/value-propagate.c               | 1 -
 operations/common-gpl3+/waves.c                         | 2 --
 operations/common-gpl3+/whirl-pinch.c                   | 1 -
 operations/common-gpl3+/wind.c                          | 1 -
 operations/common/alien-map.c                           | 1 -
 operations/common/bilateral-filter.c                    | 1 -
 operations/common/bloom.c                               | 1 -
 operations/common/box-blur.c                            | 1 -
 operations/common/c2g.c                                 | 1 -
 operations/common/color-enhance.c                       | 1 -
 operations/common/color-overlay.c                       | 1 -
 operations/common/color-warp.c                          | 1 -
 operations/common/convolution-matrix.c                  | 1 -
 operations/common/dither.c                              | 2 --
 operations/common/domain-transform.c                    | 1 -
 operations/common/edge-neon.c                           | 1 -
 operations/common/edge-sobel.c                          | 1 -
 operations/common/exp-combine.c                         | 1 -
 operations/common/exposure.c                            | 1 -
 operations/common/fattal02.c                            | 2 --
 operations/common/gaussian-blur.c                       | 1 -
 operations/common/gblur-1d.c                            | 2 --
 operations/common/hue-chroma.c                          | 1 -
 operations/common/image-compare.c                       | 1 -
 operations/common/image-gradient.c                      | 1 -
 operations/common/levels.c                              | 1 -
 operations/common/linear-gradient.c                     | 2 --
 operations/common/little-planet.c                       | 3 ---
 operations/common/long-shadow.c                         | 1 -
 operations/common/mantiuk06.c                           | 2 --
 operations/common/map-common.h                          | 6 +-----
 operations/common/matting-global.c                      | 1 -
 operations/common/mean-curvature-blur.c                 | 1 -
 operations/common/median-blur.c                         | 1 -
 operations/common/mirrors.c                             | 1 -
 operations/common/mono-mixer.c                          | 2 --
 operations/common/motion-blur-linear.c                  | 1 -
 operations/common/newsprint.c                           | 2 --
 operations/common/noise-cell.c                          | 1 -
 operations/common/noise-cie-lch.c                       | 1 -
 operations/common/noise-hsv.c                           | 1 -
 operations/common/noise-reduction.c                     | 1 -
 operations/common/noise-rgb.c                           | 1 -
 operations/common/noise-simplex.c                       | 1 -
 operations/common/noise-spread.c                        | 1 -
 operations/common/normal-map.c                          | 1 -
 operations/common/opacity.c                             | 1 -
 operations/common/pack.c                                | 1 -
 operations/common/panorama-projection.c                 | 3 ---
 operations/common/perlin/perlin.c                       | 1 -
 operations/common/pixelize.c                            | 1 -
 operations/common/radial-gradient.c                     | 2 --
 operations/common/recursive-transform.c                 | 1 -
 operations/common/reinhard05.c                          | 1 -
 operations/common/slic.c                                | 1 -
 operations/common/snn-mean.c                            | 1 -
 operations/common/spherize.c                            | 1 -
 operations/common/stress.c                              | 1 -
 operations/common/stretch-contrast.c                    | 1 -
 operations/common/svg-huerotate.c                       | 1 -
 operations/common/svg-luminancetoalpha.c                | 1 -
 operations/common/svg-matrix.c                          | 1 -
 operations/common/svg-saturate.c                        | 1 -
 operations/common/tile-seamless.c                       | 1 -
 operations/common/vignette.c                            | 2 --
 operations/common/waterpixels.c                         | 1 -
 operations/common/wavelet-blur-1d.c                     | 1 -
 operations/core/clone.c                                 | 1 -
 operations/core/crop.c                                  | 1 -
 operations/external/jpg-save.c                          | 2 --
 operations/external/matting-levin.c                     | 1 -
 operations/external/npd.c                               | 1 -
 operations/external/path.c                              | 1 -
 operations/external/png-save.c                          | 2 --
 operations/generated/add.c                              | 1 -
 operations/generated/divide.c                           | 1 -
 operations/generated/gamma.c                            | 1 -
 operations/generated/math.rb                            | 1 -
 operations/generated/multiply.c                         | 1 -
 operations/generated/soft-light.c                       | 1 -
 operations/generated/subtract.c                         | 1 -
 operations/generated/svg-12-blend.rb                    | 1 -
 operations/transform/border-align.c                     | 1 -
 operations/transform/reflect.c                          | 2 --
 operations/transform/reset-origin.c                     | 1 -
 operations/transform/rotate-on-center.c                 | 2 --
 operations/transform/rotate.c                           | 2 --
 operations/transform/scale-ratio.c                      | 2 --
 operations/transform/scale-size-keepaspect.c            | 2 --
 operations/transform/scale-size.c                       | 2 --
 operations/transform/shear.c                            | 2 --
 operations/transform/transform-core.c                   | 1 -
 operations/transform/transform.c                        | 2 --
 operations/transform/translate.c                        | 2 --
 operations/workshop/aces-rrt.c                          | 1 -
 operations/workshop/alpha-inpaint.c                     | 2 --
 operations/workshop/band-tune.c                         | 1 -
 operations/workshop/bilateral-filter-fast.c             | 1 -
 operations/workshop/connected-components.c              | 2 --
 operations/workshop/external/lens-correct.c             | 1 -
 operations/workshop/external/spyrograph.c               | 1 -
 operations/workshop/generated/average.c                 | 1 -
 operations/workshop/generated/blend-reflect.c           | 1 -
 operations/workshop/generated/blend.rb                  | 1 -
 operations/workshop/generated/negation.c                | 1 -
 operations/workshop/generated/soft-burn.c               | 1 -
 operations/workshop/generated/soft-dodge.c              | 1 -
 operations/workshop/generated/subtractive.c             | 1 -
 operations/workshop/gradient-map.c                      | 1 -
 operations/workshop/segment-kmeans.c                    | 1 -
 153 files changed, 1 insertion(+), 184 deletions(-)
---
diff --git a/operations/common-cxx/distance-transform.cc b/operations/common-cxx/distance-transform.cc
index 8e28c3f49..9023ccd4a 100644
--- a/operations/common-cxx/distance-transform.cc
+++ b/operations/common-cxx/distance-transform.cc
@@ -52,7 +52,6 @@ property_boolean (normalize, _("Normalize"), TRUE)
 #define GEGL_OP_NAME     distance_transform
 #define GEGL_OP_C_SOURCE distance-transform.cc
 #include "gegl-op.h"
-#include <math.h>
 #include <stdio.h>
 
 #define EPSILON 0.000000000001
diff --git a/operations/common-cxx/focus-blur.c b/operations/common-cxx/focus-blur.c
index 520fab395..b1f8e40ba 100644
--- a/operations/common-cxx/focus-blur.c
+++ b/operations/common-cxx/focus-blur.c
@@ -18,7 +18,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 /* #define MANUAL_CONTROL */
 
diff --git a/operations/common-cxx/piecewise-blend.cc b/operations/common-cxx/piecewise-blend.cc
index 66cf6266d..8ebf3f1d7 100644
--- a/operations/common-cxx/piecewise-blend.cc
+++ b/operations/common-cxx/piecewise-blend.cc
@@ -18,7 +18,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 #include <stdio.h>
 
 #define N_AUX_INPUTS 16
diff --git a/operations/common-cxx/variable-blur.c b/operations/common-cxx/variable-blur.c
index 7d8d10e61..504d04609 100644
--- a/operations/common-cxx/variable-blur.c
+++ b/operations/common-cxx/variable-blur.c
@@ -18,7 +18,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 #include <stdio.h>
 
 /* #define MANUAL_CONTROL */
diff --git a/operations/common-cxx/warp.cc b/operations/common-cxx/warp.cc
index 9373e37f9..909b30ec6 100644
--- a/operations/common-cxx/warp.cc
+++ b/operations/common-cxx/warp.cc
@@ -18,7 +18,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/antialias.c b/operations/common-gpl3+/antialias.c
index 456f42c65..59e2687d2 100644
--- a/operations/common-gpl3+/antialias.c
+++ b/operations/common-gpl3+/antialias.c
@@ -31,7 +31,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/apply-lens.c b/operations/common-gpl3+/apply-lens.c
index 3dbcaa41b..70ed0699d 100644
--- a/operations/common-gpl3+/apply-lens.c
+++ b/operations/common-gpl3+/apply-lens.c
@@ -52,7 +52,6 @@ property_color (background_color, _("Background color"), "none")
 #define GEGL_OP_C_SOURCE apply-lens.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 typedef struct
 {
diff --git a/operations/common-gpl3+/bayer-matrix.c b/operations/common-gpl3+/bayer-matrix.c
index 5fbdd1bde..7c53af046 100644
--- a/operations/common-gpl3+/bayer-matrix.c
+++ b/operations/common-gpl3+/bayer-matrix.c
@@ -19,7 +19,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/bump-map.c b/operations/common-gpl3+/bump-map.c
index c01a9251a..f3ea2b039 100644
--- a/operations/common-gpl3+/bump-map.c
+++ b/operations/common-gpl3+/bump-map.c
@@ -85,7 +85,6 @@ property_double  (ambient, _("Ambient lighting factor"), 0.0)
 #define GEGL_OP_C_SOURCE bump-map.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 #define LUT_SIZE 2048
 
diff --git a/operations/common-gpl3+/cartoon.c b/operations/common-gpl3+/cartoon.c
index 518724bf4..218e0b41a 100644
--- a/operations/common-gpl3+/cartoon.c
+++ b/operations/common-gpl3+/cartoon.c
@@ -39,7 +39,6 @@ property_double (pct_black, _("Percent black"), 0.2)
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 #include <stdlib.h>
 
 #define THRESHOLD 1.0
diff --git a/operations/common-gpl3+/channel-mixer.c b/operations/common-gpl3+/channel-mixer.c
index c0de79f99..21a43286b 100644
--- a/operations/common-gpl3+/channel-mixer.c
+++ b/operations/common-gpl3+/channel-mixer.c
@@ -24,7 +24,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/color-to-alpha.c b/operations/common-gpl3+/color-to-alpha.c
index bfa7bd1be..0179d3377 100644
--- a/operations/common-gpl3+/color-to-alpha.c
+++ b/operations/common-gpl3+/color-to-alpha.c
@@ -45,7 +45,6 @@ property_double (opacity_threshold, _("Opacity threshold"), 1.0)
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 
 #define EPSILON 0.00001
 
diff --git a/operations/common-gpl3+/cubism.c b/operations/common-gpl3+/cubism.c
index 26f2acd38..ad0413f01 100644
--- a/operations/common-gpl3+/cubism.c
+++ b/operations/common-gpl3+/cubism.c
@@ -48,7 +48,6 @@ property_seed (seed, _("Random seed"), rand)
 #define GEGL_OP_C_SOURCE cubism.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <stdio.h>
 
 #define SCALE_WIDTH     125
diff --git a/operations/common-gpl3+/deinterlace.c b/operations/common-gpl3+/deinterlace.c
index 72c220fe9..dd570d68a 100644
--- a/operations/common-gpl3+/deinterlace.c
+++ b/operations/common-gpl3+/deinterlace.c
@@ -54,7 +54,6 @@ property_int  (size, _("Block size"), 1)
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 
 static void
 prepare (GeglOperation *operation)
diff --git a/operations/common-gpl3+/diffraction-patterns.c b/operations/common-gpl3+/diffraction-patterns.c
index f6b7bb274..5e0ac5440 100644
--- a/operations/common-gpl3+/diffraction-patterns.c
+++ b/operations/common-gpl3+/diffraction-patterns.c
@@ -23,7 +23,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/displace.c b/operations/common-gpl3+/displace.c
index 053e8ae68..836cafdb2 100644
--- a/operations/common-gpl3+/displace.c
+++ b/operations/common-gpl3+/displace.c
@@ -99,7 +99,6 @@ property_double (center_y, _("Center Y"), 0.5)
 #define GEGL_OP_C_SOURCE displace.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 static gdouble
 get_base_displacement (gdouble  amount,
diff --git a/operations/common-gpl3+/edge-laplace.c b/operations/common-gpl3+/edge-laplace.c
index 51ef43ee1..62352c156 100644
--- a/operations/common-gpl3+/edge-laplace.c
+++ b/operations/common-gpl3+/edge-laplace.c
@@ -33,7 +33,6 @@
 #define GEGL_OP_C_SOURCE edge-laplace.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 #define LAPLACE_RADIUS 2
 #define CHUNK_SIZE     1024
diff --git a/operations/common-gpl3+/edge.c b/operations/common-gpl3+/edge.c
index 12071896f..58ba23c2b 100644
--- a/operations/common-gpl3+/edge.c
+++ b/operations/common-gpl3+/edge.c
@@ -55,7 +55,6 @@ property_enum (border_behavior, _("Border behavior"),
 #define GEGL_OP_NAME        edge
 #define GEGL_OP_C_SOURCE    edge.c
 
-#include <math.h>
 #include "gegl-op.h"
 
 static inline gfloat
diff --git a/operations/common-gpl3+/emboss.c b/operations/common-gpl3+/emboss.c
index 031ac15a8..5e1b14ac5 100644
--- a/operations/common-gpl3+/emboss.c
+++ b/operations/common-gpl3+/emboss.c
@@ -53,7 +53,6 @@ property_int (depth, _("Depth"), 20)
 #define GEGL_OP_C_SOURCE emboss.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <stdio.h>
 
 #define DEG_TO_RAD(d) (((d) * G_PI) / 180.0)
diff --git a/operations/common-gpl3+/fractal-explorer.c b/operations/common-gpl3+/fractal-explorer.c
index 6fb7a1755..1eea69f2c 100644
--- a/operations/common-gpl3+/fractal-explorer.c
+++ b/operations/common-gpl3+/fractal-explorer.c
@@ -124,7 +124,6 @@ property_boolean (useloglog, _("Loglog smoothing"), FALSE)
 #define GEGL_OP_C_SOURCE fractal-explorer.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <stdio.h>
 
 typedef struct
diff --git a/operations/common-gpl3+/fractal-trace.c b/operations/common-gpl3+/fractal-trace.c
index 2cef5508a..3f7b60b18 100644
--- a/operations/common-gpl3+/fractal-trace.c
+++ b/operations/common-gpl3+/fractal-trace.c
@@ -75,7 +75,6 @@ property_enum   (abyss_policy, _("Abyss policy"),
 #define GEGL_OP_C_SOURCE fractal-trace.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void
 julia (gdouble  x,
diff --git a/operations/common-gpl3+/gaussian-blur-selective.c 
b/operations/common-gpl3+/gaussian-blur-selective.c
index a5446d6e1..801bd40d5 100644
--- a/operations/common-gpl3+/gaussian-blur-selective.c
+++ b/operations/common-gpl3+/gaussian-blur-selective.c
@@ -42,7 +42,6 @@ property_double (max_delta, _("Max. delta"), 0.2)
 #define GEGL_OP_C_SOURCE gaussian-blur-selective.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void
 prepare (GeglOperation *operation)
diff --git a/operations/common-gpl3+/illusion.c b/operations/common-gpl3+/illusion.c
index 0e945500c..b2b902211 100644
--- a/operations/common-gpl3+/illusion.c
+++ b/operations/common-gpl3+/illusion.c
@@ -46,7 +46,6 @@ property_enum (illusion_type, _("Illusion type"),
 #define GEGL_OP_C_SOURCE illusion.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void prepare (GeglOperation *operation)
 {
diff --git a/operations/common-gpl3+/lens-distortion.c b/operations/common-gpl3+/lens-distortion.c
index 095721af2..276b22699 100644
--- a/operations/common-gpl3+/lens-distortion.c
+++ b/operations/common-gpl3+/lens-distortion.c
@@ -63,7 +63,6 @@ property_color  (background, _("Background color"), "none")
 #define GEGL_OP_C_SOURCE lens-distortion.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <stdio.h>
 
 #define SQR(x) ((x)*(x))
diff --git a/operations/common-gpl3+/lens-flare.c b/operations/common-gpl3+/lens-flare.c
index 5693c50f3..ed1c93f35 100644
--- a/operations/common-gpl3+/lens-flare.c
+++ b/operations/common-gpl3+/lens-flare.c
@@ -21,7 +21,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/linear-sinusoid.c b/operations/common-gpl3+/linear-sinusoid.c
index f4c30dbc3..7bf6c941f 100644
--- a/operations/common-gpl3+/linear-sinusoid.c
+++ b/operations/common-gpl3+/linear-sinusoid.c
@@ -19,7 +19,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/maze.c b/operations/common-gpl3+/maze.c
index eecc0dad7..35dad91d5 100644
--- a/operations/common-gpl3+/maze.c
+++ b/operations/common-gpl3+/maze.c
@@ -80,7 +80,6 @@ property_color  (bg_color, _("Background Color"), "white")
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 
 #define CELL_UP(POS) ((POS) < (x*2) ? -1 : (POS) - x - x)
 #define CELL_DOWN(POS) ((POS) >= x*(y-2) ? -1 : (POS) + x + x)
diff --git a/operations/common-gpl3+/mosaic.c b/operations/common-gpl3+/mosaic.c
index d56490d73..efacaf48b 100644
--- a/operations/common-gpl3+/mosaic.c
+++ b/operations/common-gpl3+/mosaic.c
@@ -95,7 +95,6 @@ property_seed (seed, _("Random seed"), rand)
 #define GEGL_OP_C_SOURCE mosaic.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 #define SUPERSAMPLE       3
 #define MAG_THRESHOLD     (7.5/255.0)
diff --git a/operations/common-gpl3+/motion-blur-circular.c b/operations/common-gpl3+/motion-blur-circular.c
index 488cd48c3..ed530dec0 100644
--- a/operations/common-gpl3+/motion-blur-circular.c
+++ b/operations/common-gpl3+/motion-blur-circular.c
@@ -34,7 +34,6 @@
 #include "config.h"
 
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/motion-blur-zoom.c b/operations/common-gpl3+/motion-blur-zoom.c
index c86b00f6d..a6cd07877 100644
--- a/operations/common-gpl3+/motion-blur-zoom.c
+++ b/operations/common-gpl3+/motion-blur-zoom.c
@@ -33,7 +33,6 @@
 #include "config.h"
 
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/noise-solid.c b/operations/common-gpl3+/noise-solid.c
index 563e0a9e8..b928053c0 100644
--- a/operations/common-gpl3+/noise-solid.c
+++ b/operations/common-gpl3+/noise-solid.c
@@ -30,7 +30,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/oilify.c b/operations/common-gpl3+/oilify.c
index b76a04db4..00fe97943 100644
--- a/operations/common-gpl3+/oilify.c
+++ b/operations/common-gpl3+/oilify.c
@@ -49,7 +49,6 @@ property_boolean (use_inten, _("Intensity Mode"), TRUE)
 #define GEGL_OP_C_SOURCE oilify.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 #define NUM_INTENSITIES       256
 
diff --git a/operations/common-gpl3+/photocopy.c b/operations/common-gpl3+/photocopy.c
index 91105e176..fab22f613 100644
--- a/operations/common-gpl3+/photocopy.c
+++ b/operations/common-gpl3+/photocopy.c
@@ -42,7 +42,6 @@ property_double (white, _("Percent White"), 0.2)
 #define GEGL_OP_C_SOURCE photocopy.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 #define THRESHOLD 0.75
 
diff --git a/operations/common-gpl3+/polar-coordinates.c b/operations/common-gpl3+/polar-coordinates.c
index 14eb89a92..02a0070b5 100644
--- a/operations/common-gpl3+/polar-coordinates.c
+++ b/operations/common-gpl3+/polar-coordinates.c
@@ -75,7 +75,6 @@ property_boolean (middle, _("Choose middle"), TRUE)
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 
 #define WITHIN(a, b, c) ((((a) <= (b)) && ((b) <= (c))) ? 1 : 0)
 #define SQR(x) (x)*(x)
diff --git a/operations/common-gpl3+/red-eye-removal.c b/operations/common-gpl3+/red-eye-removal.c
index c597708ad..5035ade4c 100644
--- a/operations/common-gpl3+/red-eye-removal.c
+++ b/operations/common-gpl3+/red-eye-removal.c
@@ -40,7 +40,6 @@ property_double (threshold, _("Threshold"), 0.4)
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 
 #define RED_FACTOR    0.5133333
 #define GREEN_FACTOR  1
diff --git a/operations/common-gpl3+/ripple.c b/operations/common-gpl3+/ripple.c
index fe5b11e22..3d812db34 100644
--- a/operations/common-gpl3+/ripple.c
+++ b/operations/common-gpl3+/ripple.c
@@ -69,7 +69,6 @@ property_boolean (tileable, _("Tileable"), FALSE)
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 #include <stdlib.h>
 
 static void
diff --git a/operations/common-gpl3+/shadows-highlights-correction.c 
b/operations/common-gpl3+/shadows-highlights-correction.c
index 78531ed89..0e68d52e6 100644
--- a/operations/common-gpl3+/shadows-highlights-correction.c
+++ b/operations/common-gpl3+/shadows-highlights-correction.c
@@ -58,7 +58,6 @@ property_double (highlights_ccorrect, _("Highlights color adjustment"), 50.0)
 
 #include "gegl-op.h"
 #include "gegl-debug.h"
-#include <math.h>
 
 #define SIGN(x) (((x) < 0) ? -1.f : 1.f)
 
diff --git a/operations/common-gpl3+/sinus.c b/operations/common-gpl3+/sinus.c
index 62eb5efe0..2bc5270ef 100644
--- a/operations/common-gpl3+/sinus.c
+++ b/operations/common-gpl3+/sinus.c
@@ -25,7 +25,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/softglow.c b/operations/common-gpl3+/softglow.c
index 0e85d26e1..74ee29709 100644
--- a/operations/common-gpl3+/softglow.c
+++ b/operations/common-gpl3+/softglow.c
@@ -41,7 +41,6 @@ property_double (sharpness, _("Sharpness"), 0.85)
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 #include <stdlib.h>
 
 #define SIGMOIDAL_BASE   2
diff --git a/operations/common-gpl3+/spiral.c b/operations/common-gpl3+/spiral.c
index dd0add378..7e805c192 100644
--- a/operations/common-gpl3+/spiral.c
+++ b/operations/common-gpl3+/spiral.c
@@ -106,7 +106,6 @@ property_int    (height, _("Height"), 768)
 #define GEGL_OP_C_SOURCE spiral.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 #define RAD_TO_REV ((gfloat) (1.0 / (2.0 * G_PI)))
 
diff --git a/operations/common-gpl3+/supernova.c b/operations/common-gpl3+/supernova.c
index 4a42a0741..4314f04d0 100644
--- a/operations/common-gpl3+/supernova.c
+++ b/operations/common-gpl3+/supernova.c
@@ -26,7 +26,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/tile-glass.c b/operations/common-gpl3+/tile-glass.c
index 4d806df5c..c5c844a32 100644
--- a/operations/common-gpl3+/tile-glass.c
+++ b/operations/common-gpl3+/tile-glass.c
@@ -45,7 +45,6 @@ property_int (tile_height, _("Tile Height"), 25)
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 #include <stdlib.h>
 
 static void
diff --git a/operations/common-gpl3+/tile-paper.c b/operations/common-gpl3+/tile-paper.c
index abc9d8d66..6f6b8f762 100644
--- a/operations/common-gpl3+/tile-paper.c
+++ b/operations/common-gpl3+/tile-paper.c
@@ -87,7 +87,6 @@ property_seed (seed, _("Random seed"), rand)
 #define GEGL_OP_C_SOURCE tile-paper.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 
 typedef struct _Tile
diff --git a/operations/common-gpl3+/value-propagate.c b/operations/common-gpl3+/value-propagate.c
index 1181acf8b..3848dcb73 100644
--- a/operations/common-gpl3+/value-propagate.c
+++ b/operations/common-gpl3+/value-propagate.c
@@ -21,7 +21,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common-gpl3+/waves.c b/operations/common-gpl3+/waves.c
index 066dc101e..47b43f999 100644
--- a/operations/common-gpl3+/waves.c
+++ b/operations/common-gpl3+/waves.c
@@ -19,7 +19,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
@@ -62,7 +61,6 @@ property_boolean (clamp, _("Clamp deformation"), FALSE)
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 
 static void
 prepare (GeglOperation *operation)
diff --git a/operations/common-gpl3+/whirl-pinch.c b/operations/common-gpl3+/whirl-pinch.c
index 787fb43c1..eb919fad0 100644
--- a/operations/common-gpl3+/whirl-pinch.c
+++ b/operations/common-gpl3+/whirl-pinch.c
@@ -55,7 +55,6 @@ property_double (radius, _("Radius"), 1.0)
 #define GEGL_OP_NAME     whirl_pinch
 
 #include "gegl-op.h"
-#include <math.h>
 
 /* This function is a slightly modified version from the one in the
  * original plugin
diff --git a/operations/common-gpl3+/wind.c b/operations/common-gpl3+/wind.c
index fcd05943d..68e1592f7 100644
--- a/operations/common-gpl3+/wind.c
+++ b/operations/common-gpl3+/wind.c
@@ -74,7 +74,6 @@ property_seed (seed, _("Random seed"), rand)
 #define GEGL_OP_NAME     wind
 
 #include "gegl-op.h"
-#include <math.h>
 
 #define COMPARE_WIDTH    3
 
diff --git a/operations/common/alien-map.c b/operations/common/alien-map.c
index 77d569c89..94587d003 100644
--- a/operations/common/alien-map.c
+++ b/operations/common/alien-map.c
@@ -21,7 +21,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common/bilateral-filter.c b/operations/common/bilateral-filter.c
index 819f0a5eb..39b9d2282 100644
--- a/operations/common/bilateral-filter.c
+++ b/operations/common/bilateral-filter.c
@@ -40,7 +40,6 @@ property_double (edge_preservation, _("Edge preservation"), 8.0)
 #define GEGL_OP_C_SOURCE bilateral-filter.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void
 bilateral_filter (GeglBuffer          *src,
diff --git a/operations/common/bloom.c b/operations/common/bloom.c
index 165c6d40e..48fea3085 100644
--- a/operations/common/bloom.c
+++ b/operations/common/bloom.c
@@ -18,7 +18,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #define EPSILON 1e-6
 
diff --git a/operations/common/box-blur.c b/operations/common/box-blur.c
index 428a724bb..ad26b1747 100644
--- a/operations/common/box-blur.c
+++ b/operations/common/box-blur.c
@@ -36,7 +36,6 @@ property_int (radius, _("Radius"), 4)
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 
 #define SRC_OFFSET (row + u + radius * 2) * 4
 
diff --git a/operations/common/c2g.c b/operations/common/c2g.c
index 377e5753e..c6684fde1 100644
--- a/operations/common/c2g.c
+++ b/operations/common/c2g.c
@@ -59,7 +59,6 @@ property_double (rgamma, _("Radial Gamma"), 0.0, 8.0, 2.0,
 #define GEGL_OP_C_SOURCE c2g.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <stdlib.h>
 #include "envelopes.h"
 
diff --git a/operations/common/color-enhance.c b/operations/common/color-enhance.c
index 95a1ef1ad..a482c9c1e 100644
--- a/operations/common/color-enhance.c
+++ b/operations/common/color-enhance.c
@@ -22,7 +22,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common/color-overlay.c b/operations/common/color-overlay.c
index 98ea64cb1..c496282b8 100644
--- a/operations/common/color-overlay.c
+++ b/operations/common/color-overlay.c
@@ -37,7 +37,6 @@ property_boolean (srgb, _("sRGB"), FALSE)
 #define GEGL_OP_C_SOURCE color-overlay.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void prepare (GeglOperation *operation)
 {
diff --git a/operations/common/color-warp.c b/operations/common/color-warp.c
index b4e32a2a8..8885e98ee 100644
--- a/operations/common/color-warp.c
+++ b/operations/common/color-warp.c
@@ -77,7 +77,6 @@ property_double (amount, _("amount"), 1.0)
 #define GEGL_OP_C_SOURCE color-warp.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 #define MAX_PAIRS 64
 
diff --git a/operations/common/convolution-matrix.c b/operations/common/convolution-matrix.c
index bd0a33261..b0b76a029 100644
--- a/operations/common/convolution-matrix.c
+++ b/operations/common/convolution-matrix.c
@@ -75,7 +75,6 @@ property_enum (border, _("Border"),
 #define GEGL_OP_C_SOURCE convolution-matrix.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <stdio.h>
 
 #define MAX_MATRIX_SIZE 5
diff --git a/operations/common/dither.c b/operations/common/dither.c
index 4967bb1ef..c069efd8a 100644
--- a/operations/common/dither.c
+++ b/operations/common/dither.c
@@ -19,8 +19,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
-
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common/domain-transform.c b/operations/common/domain-transform.c
index 8392d9420..7f1f405e0 100644
--- a/operations/common/domain-transform.c
+++ b/operations/common/domain-transform.c
@@ -44,7 +44,6 @@ property_double (edge_preservation, _("Edge preservation"),  0.8)
 #define GEGL_OP_C_SOURCE domain-transform.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 /* This should be 768, since we have 2^8 possible options for each channel.
  * Since domain transform is given by:
diff --git a/operations/common/edge-neon.c b/operations/common/edge-neon.c
index 52f3be5cd..4555ac677 100644
--- a/operations/common/edge-neon.c
+++ b/operations/common/edge-neon.c
@@ -40,7 +40,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 #include <stdio.h>
 
 #ifdef GEGL_PROPERTIES
diff --git a/operations/common/edge-sobel.c b/operations/common/edge-sobel.c
index f6c391580..cbc5389e4 100644
--- a/operations/common/edge-sobel.c
+++ b/operations/common/edge-sobel.c
@@ -38,7 +38,6 @@ property_boolean (keep_sign,  _("Keep Sign"), TRUE)
 #define GEGL_OP_C_SOURCE edge-sobel.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <stdio.h>
 
 #define SOBEL_RADIUS 1
diff --git a/operations/common/exp-combine.c b/operations/common/exp-combine.c
index 3aecf2b54..ab5ecb471 100644
--- a/operations/common/exp-combine.c
+++ b/operations/common/exp-combine.c
@@ -57,7 +57,6 @@ typedef struct
 GEGL_DEFINE_DYNAMIC_OPERATION(GEGL_TYPE_OPERATION_FILTER)
 
 #include <errno.h>
-#include <math.h>
 #include <stdio.h>
 
 #include "gegl-debug.h"
diff --git a/operations/common/exposure.c b/operations/common/exposure.c
index c1ff44afa..89e4449aa 100644
--- a/operations/common/exposure.c
+++ b/operations/common/exposure.c
@@ -40,7 +40,6 @@ property_double (exposure, _("Exposure"), 0.0)
 #include "gegl-op.h"
 #include "opencl/gegl-cl.h"
 
-#include <math.h>
 #ifdef _MSC_VER
 #define exp2f (b) ((gfloat) pow (2.0, b))
 #endif
diff --git a/operations/common/fattal02.c b/operations/common/fattal02.c
index 10ef43680..68e15c9c4 100644
--- a/operations/common/fattal02.c
+++ b/operations/common/fattal02.c
@@ -25,8 +25,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
-
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common/gaussian-blur.c b/operations/common/gaussian-blur.c
index 9c262a7c3..77191d9f0 100644
--- a/operations/common/gaussian-blur.c
+++ b/operations/common/gaussian-blur.c
@@ -17,7 +17,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common/gblur-1d.c b/operations/common/gblur-1d.c
index 514ff7442..1b67cb9dd 100644
--- a/operations/common/gblur-1d.c
+++ b/operations/common/gblur-1d.c
@@ -71,8 +71,6 @@ property_boolean (clip_extent, _("Clip to the input extent"), TRUE)
 #define GEGL_OP_C_SOURCE gblur-1d.c
 
 #include "gegl-op.h"
-#include <math.h>
-
 
 /**********************************************
  *
diff --git a/operations/common/hue-chroma.c b/operations/common/hue-chroma.c
index 5080cfe1b..bc1f98e6f 100644
--- a/operations/common/hue-chroma.c
+++ b/operations/common/hue-chroma.c
@@ -44,7 +44,6 @@ property_double (lightness, _("Lightness"), 0.0)
 #include "gegl-op.h"
 
 #define EPSILON     1e-6f
-#include <math.h>
 
 static void
 prepare (GeglOperation *operation)
diff --git a/operations/common/image-compare.c b/operations/common/image-compare.c
index 1bbe44025..dec79c7fb 100644
--- a/operations/common/image-compare.c
+++ b/operations/common/image-compare.c
@@ -19,7 +19,6 @@
  */
 
 #include "config.h"
-#include <math.h>
 #include <glib/gi18n-lib.h>
 
 #ifdef GEGL_PROPERTIES
diff --git a/operations/common/image-gradient.c b/operations/common/image-gradient.c
index 1688a8c77..71ebede3a 100644
--- a/operations/common/image-gradient.c
+++ b/operations/common/image-gradient.c
@@ -43,7 +43,6 @@ property_enum (output_mode, _("Output mode"),
 #define POW2(x) ((x)*(x))
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void
 prepare (GeglOperation *operation)
diff --git a/operations/common/levels.c b/operations/common/levels.c
index 11fb7123e..134c44a22 100644
--- a/operations/common/levels.c
+++ b/operations/common/levels.c
@@ -19,7 +19,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #define EPSILON 1e-6
 
diff --git a/operations/common/linear-gradient.c b/operations/common/linear-gradient.c
index 321a63530..2676519ef 100644
--- a/operations/common/linear-gradient.c
+++ b/operations/common/linear-gradient.c
@@ -54,8 +54,6 @@ property_color  (end_color, _("End Color"), "white")
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 static void
 prepare (GeglOperation *operation)
 {
diff --git a/operations/common/little-planet.c b/operations/common/little-planet.c
index 5389a5ff7..13f988a41 100644
--- a/operations/common/little-planet.c
+++ b/operations/common/little-planet.c
@@ -16,9 +16,6 @@
  * Copyright 2014, 2018 Øyvind Kolås <pippin gimp org>
  */
 
-#include <math.h>
-
-
 #ifdef GEGL_PROPERTIES
 
 property_double (pan, _("Pan"), 0.0)
diff --git a/operations/common/long-shadow.c b/operations/common/long-shadow.c
index 997fbeefc..20d16e916 100644
--- a/operations/common/long-shadow.c
+++ b/operations/common/long-shadow.c
@@ -96,7 +96,6 @@ property_enum (composition, _("Composition"),
 #define GEGL_OP_C_SOURCE long-shadow.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 /* virtual screen resolution, as a factor of the image resolution.  must be an
  * integer.
diff --git a/operations/common/mantiuk06.c b/operations/common/mantiuk06.c
index 9b8c5484f..dfcea16fb 100644
--- a/operations/common/mantiuk06.c
+++ b/operations/common/mantiuk06.c
@@ -23,8 +23,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
-
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common/map-common.h b/operations/common/map-common.h
index 4a98ee2e7..6ede486cb 100644
--- a/operations/common/map-common.h
+++ b/operations/common/map-common.h
@@ -18,13 +18,9 @@
  */
 
 
-#include <math.h>
-
-
 #define EPSILON 1e-6
 
-
-static void
+        static void
 prepare (GeglOperation *operation)
 {
   const Babl *space = gegl_operation_get_source_space (operation, "input");
diff --git a/operations/common/matting-global.c b/operations/common/matting-global.c
index 800e7a35b..2768e890f 100644
--- a/operations/common/matting-global.c
+++ b/operations/common/matting-global.c
@@ -18,7 +18,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common/mean-curvature-blur.c b/operations/common/mean-curvature-blur.c
index dd286bafa..af1993ec8 100644
--- a/operations/common/mean-curvature-blur.c
+++ b/operations/common/mean-curvature-blur.c
@@ -35,7 +35,6 @@ property_int  (iterations, _("Iterations"), 20)
 #define POW2(x) ((x)*(x))
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void
 prepare (GeglOperation *operation)
diff --git a/operations/common/median-blur.c b/operations/common/median-blur.c
index d2f787ca7..308eed4c2 100644
--- a/operations/common/median-blur.c
+++ b/operations/common/median-blur.c
@@ -20,7 +20,6 @@
 #include "config.h"
 #include <glib/gi18n-lib.h>
 #include <stdlib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common/mirrors.c b/operations/common/mirrors.c
index 1c01dc002..87889fd18 100644
--- a/operations/common/mirrors.c
+++ b/operations/common/mirrors.c
@@ -94,7 +94,6 @@ property_boolean (warp, _("Wrap input"), TRUE)
 #define GEGL_OP_C_SOURCE mirrors.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 #if 0
 #define TRACE       /* Define this to see basic tracing info. */
diff --git a/operations/common/mono-mixer.c b/operations/common/mono-mixer.c
index de31e7a33..47231e410 100644
--- a/operations/common/mono-mixer.c
+++ b/operations/common/mono-mixer.c
@@ -19,8 +19,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
-
 
 #ifdef GEGL_PROPERTIES
 property_boolean (preserve_luminosity, _("Preserve luminosity"), FALSE)
diff --git a/operations/common/motion-blur-linear.c b/operations/common/motion-blur-linear.c
index 5c1047be0..3743236da 100644
--- a/operations/common/motion-blur-linear.c
+++ b/operations/common/motion-blur-linear.c
@@ -19,7 +19,6 @@
 #include "config.h"
 
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common/newsprint.c b/operations/common/newsprint.c
index 08c048cf3..f8d75d20e 100644
--- a/operations/common/newsprint.c
+++ b/operations/common/newsprint.c
@@ -189,8 +189,6 @@ property_double (angleboost, _("Angle Boost"), 0.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 /* for details and more liberal licensing of the following function, see
    https://pippin.gimp.org/spachrotyzer/ */
 
diff --git a/operations/common/noise-cell.c b/operations/common/noise-cell.c
index 0265d364c..5d0853621 100644
--- a/operations/common/noise-cell.c
+++ b/operations/common/noise-cell.c
@@ -64,7 +64,6 @@ property_seed    (seed, _("Random seed"), rand)
 #include "gegl-op.h"
 #include <gegl-buffer-cl-iterator.h>
 #include <gegl-debug.h>
-#include <math.h>
 
 #include "opencl/noise-cell.cl.h"
 
diff --git a/operations/common/noise-cie-lch.c b/operations/common/noise-cie-lch.c
index ad0a61412..d5f1a69b8 100644
--- a/operations/common/noise-cie-lch.c
+++ b/operations/common/noise-cie-lch.c
@@ -46,7 +46,6 @@ property_seed   (seed, _("Random seed"), rand)
 #include "gegl-op.h"
 #include "gegl.h"
 #include <stdio.h>
-#include <math.h>
 #include <stdlib.h>
 
 static gfloat
diff --git a/operations/common/noise-hsv.c b/operations/common/noise-hsv.c
index 083a55f85..eb61dcd62 100644
--- a/operations/common/noise-hsv.c
+++ b/operations/common/noise-hsv.c
@@ -47,7 +47,6 @@ property_seed   (seed, _("Random seed"), rand)
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 #include <stdlib.h>
 
 static gfloat
diff --git a/operations/common/noise-reduction.c b/operations/common/noise-reduction.c
index 7e8e5d5ea..357895446 100644
--- a/operations/common/noise-reduction.c
+++ b/operations/common/noise-reduction.c
@@ -35,7 +35,6 @@ property_int  (iterations, _("Strength"), 4)
 #define GEGL_OP_C_SOURCE noise-reduction.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 /* The core noise_reduction function, which is implemented as
  * portable C - this is the function where most cpu time goes
diff --git a/operations/common/noise-rgb.c b/operations/common/noise-rgb.c
index ea0304b2b..d8d107932 100644
--- a/operations/common/noise-rgb.c
+++ b/operations/common/noise-rgb.c
@@ -62,7 +62,6 @@ property_seed (seed, _("Random seed"), rand)
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 #include <stdlib.h>
 
 /*
diff --git a/operations/common/noise-simplex.c b/operations/common/noise-simplex.c
index d10cf20f8..2971b1269 100644
--- a/operations/common/noise-simplex.c
+++ b/operations/common/noise-simplex.c
@@ -48,7 +48,6 @@ property_seed   (seed, _("Random seed"), rand)
 #include "gegl-op.h"
 #include <gegl-buffer-cl-iterator.h>
 #include <gegl-debug.h>
-#include <math.h>
 
 #include "opencl/noise-simplex.cl.h"
 
diff --git a/operations/common/noise-spread.c b/operations/common/noise-spread.c
index 53926bdc7..afcef1888 100644
--- a/operations/common/noise-spread.c
+++ b/operations/common/noise-spread.c
@@ -47,7 +47,6 @@ property_seed (seed, _("Random seed"), rand)
 #define GEGL_OP_C_SOURCE noise-spread.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 static inline void
 calc_sample_coords (gint        src_x,
diff --git a/operations/common/normal-map.c b/operations/common/normal-map.c
index a24cfc6f2..64c2aa92b 100644
--- a/operations/common/normal-map.c
+++ b/operations/common/normal-map.c
@@ -60,7 +60,6 @@ property_boolean (tileable, _("Tileable"), FALSE)
 #define GEGL_OP_NAME     normal_map
 #define GEGL_OP_C_SOURCE normal-map.c
 
-#include <math.h>
 #include "gegl-op.h"
 
 static void
diff --git a/operations/common/opacity.c b/operations/common/opacity.c
index d8a5c6acf..350494ecf 100644
--- a/operations/common/opacity.c
+++ b/operations/common/opacity.c
@@ -36,7 +36,6 @@ property_double (value, _("Opacity"), 1.0)
 #include "gegl-op.h"
 
 #include <stdio.h>
-#include <math.h>
 
 #define EPSILON 1e-6f
 
diff --git a/operations/common/pack.c b/operations/common/pack.c
index d7df6ab04..5c955c589 100644
--- a/operations/common/pack.c
+++ b/operations/common/pack.c
@@ -18,7 +18,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common/panorama-projection.c b/operations/common/panorama-projection.c
index da3b968f1..62772861c 100644
--- a/operations/common/panorama-projection.c
+++ b/operations/common/panorama-projection.c
@@ -16,9 +16,6 @@
  * Copyright 2014, 2018 Øyvind Kolås <pippin gimp org>
  */
 
-#include <math.h>
-
-
 #ifdef GEGL_PROPERTIES
 
 property_double (pan, _("Pan"), 0.0)
diff --git a/operations/common/perlin/perlin.c b/operations/common/perlin/perlin.c
index a1ae3615e..400c27183 100644
--- a/operations/common/perlin/perlin.c
+++ b/operations/common/perlin/perlin.c
@@ -4,7 +4,6 @@
 #include "config.h"
 #include <stdlib.h>
 #include <stdio.h>
-#include <math.h>
 #include "perlin.h"
 
 /* random is not portable to all platforms */
diff --git a/operations/common/pixelize.c b/operations/common/pixelize.c
index 4c628b9ca..c5dd48bca 100644
--- a/operations/common/pixelize.c
+++ b/operations/common/pixelize.c
@@ -19,7 +19,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common/radial-gradient.c b/operations/common/radial-gradient.c
index a6b912cef..0d464f754 100644
--- a/operations/common/radial-gradient.c
+++ b/operations/common/radial-gradient.c
@@ -39,8 +39,6 @@ property_color  (end_color, _("End Color"), "white")
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 static void
 prepare (GeglOperation *operation)
 {
diff --git a/operations/common/recursive-transform.c b/operations/common/recursive-transform.c
index e0c98711a..7f209dd78 100644
--- a/operations/common/recursive-transform.c
+++ b/operations/common/recursive-transform.c
@@ -60,7 +60,6 @@ property_enum    (sampler_type, _("Resampling method"),
 #define GEGL_OP_C_SOURCE recursive-transform.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 typedef struct
 {
diff --git a/operations/common/reinhard05.c b/operations/common/reinhard05.c
index 3d4b5fe1f..139c6bd7e 100644
--- a/operations/common/reinhard05.c
+++ b/operations/common/reinhard05.c
@@ -19,7 +19,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/common/slic.c b/operations/common/slic.c
index bb3674037..8611e8836 100644
--- a/operations/common/slic.c
+++ b/operations/common/slic.c
@@ -47,7 +47,6 @@ property_int (iterations, _("Iterations"), 1)
 #define GEGL_OP_C_SOURCE  slic.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 #define POW2(x) ((x)*(x))
 
diff --git a/operations/common/snn-mean.c b/operations/common/snn-mean.c
index dafab5052..54a91070c 100644
--- a/operations/common/snn-mean.c
+++ b/operations/common/snn-mean.c
@@ -41,7 +41,6 @@ property_int (pairs, _("Pairs"), 2)
 #define GEGL_OP_C_SOURCE snn-mean.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void
 snn_mean (GeglBuffer          *src,
diff --git a/operations/common/spherize.c b/operations/common/spherize.c
index 3ebf459b7..79354e21e 100644
--- a/operations/common/spherize.c
+++ b/operations/common/spherize.c
@@ -64,7 +64,6 @@ property_enum (sampler_type, _("Resampling method"),
 #define GEGL_OP_C_SOURCE spherize.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 #define EPSILON 1e-10
 
diff --git a/operations/common/stress.c b/operations/common/stress.c
index 01fea4a82..4edd1ea28 100644
--- a/operations/common/stress.c
+++ b/operations/common/stress.c
@@ -64,7 +64,6 @@ property_double (rgamma, _("Radial Gamma"), 0.0, 8.0, 2.0,
 #define RGAMMA   2.0
 #define GAMMA    1.0
 
-#include <math.h>
 #include <stdlib.h>
 #include "envelopes.h"
 
diff --git a/operations/common/stretch-contrast.c b/operations/common/stretch-contrast.c
index a13cc9f59..8e37fbe64 100644
--- a/operations/common/stretch-contrast.c
+++ b/operations/common/stretch-contrast.c
@@ -35,7 +35,6 @@ property_boolean (perceptual, _("Non-linear components"), FALSE)
 #define GEGL_OP_C_SOURCE stretch-contrast.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void
 buffer_get_min_max (GeglBuffer *buffer,
diff --git a/operations/common/svg-huerotate.c b/operations/common/svg-huerotate.c
index 312a473c2..56813cd26 100644
--- a/operations/common/svg-huerotate.c
+++ b/operations/common/svg-huerotate.c
@@ -34,7 +34,6 @@ property_string (values, _("Values"), "")
 #define GEGL_OP_C_SOURCE svg-huerotate.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <stdlib.h>
 
 static void prepare (GeglOperation *operation)
diff --git a/operations/common/svg-luminancetoalpha.c b/operations/common/svg-luminancetoalpha.c
index c80fa0ac9..36752323b 100644
--- a/operations/common/svg-luminancetoalpha.c
+++ b/operations/common/svg-luminancetoalpha.c
@@ -31,7 +31,6 @@
 #define GEGL_OP_C_SOURCE svg-luminancetoalpha.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <stdlib.h>
 
 static void prepare (GeglOperation *operation)
diff --git a/operations/common/svg-matrix.c b/operations/common/svg-matrix.c
index 40f0557c3..2eb523ed2 100644
--- a/operations/common/svg-matrix.c
+++ b/operations/common/svg-matrix.c
@@ -34,7 +34,6 @@ property_string (values, _("Values"), "")
 #define GEGL_OP_C_SOURCE svg-matrix.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <stdlib.h>
 
 static void prepare (GeglOperation *operation)
diff --git a/operations/common/svg-saturate.c b/operations/common/svg-saturate.c
index 587b420a5..8c242d7bc 100644
--- a/operations/common/svg-saturate.c
+++ b/operations/common/svg-saturate.c
@@ -32,7 +32,6 @@ property_string (values, _("Values"), "")
 #define GEGL_OP_C_SOURCE svg-saturate.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <stdlib.h>
 
 
diff --git a/operations/common/tile-seamless.c b/operations/common/tile-seamless.c
index 1d6a691d1..503bdf703 100644
--- a/operations/common/tile-seamless.c
+++ b/operations/common/tile-seamless.c
@@ -29,7 +29,6 @@
 #define GEGL_OP_C_SOURCE tile-seamless.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 
 static void
diff --git a/operations/common/vignette.c b/operations/common/vignette.c
index b2d9436f2..31b016995 100644
--- a/operations/common/vignette.c
+++ b/operations/common/vignette.c
@@ -85,8 +85,6 @@ property_double (rotation, _("Rotation"), 0.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 static void
 prepare (GeglOperation *operation)
 {
diff --git a/operations/common/waterpixels.c b/operations/common/waterpixels.c
index c45cfeb8f..0aa2730ec 100644
--- a/operations/common/waterpixels.c
+++ b/operations/common/waterpixels.c
@@ -61,7 +61,6 @@ property_enum (fill, _("Superpixels color"),
 #define GEGL_OP_C_SOURCE waterpixels.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 #define POW2(x) ((x)*(x))
 
diff --git a/operations/common/wavelet-blur-1d.c b/operations/common/wavelet-blur-1d.c
index 6bde05e1f..402e495b3 100644
--- a/operations/common/wavelet-blur-1d.c
+++ b/operations/common/wavelet-blur-1d.c
@@ -46,7 +46,6 @@ description (_("The orientation of the blur - hor/ver"))
 #define GEGL_OP_C_SOURCE wavelet-blur-1d.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 static inline void
 wav_get_mean_pixel_1D (gfloat  *src,
diff --git a/operations/core/clone.c b/operations/core/clone.c
index e5e42b3be..d9d629a89 100644
--- a/operations/core/clone.c
+++ b/operations/core/clone.c
@@ -32,7 +32,6 @@ property_string (ref, _("Reference"), "ID")
 #define GEGL_OP_C_SOURCE clone.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <string.h>
 
 static GeglNode *
diff --git a/operations/core/crop.c b/operations/core/crop.c
index 0db3408e0..86283fc4f 100644
--- a/operations/core/crop.c
+++ b/operations/core/crop.c
@@ -51,7 +51,6 @@ property_boolean (reset_origin, _("Reset origin"), FALSE)
 #define GEGL_OP_C_SOURCE crop.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 typedef struct
 {
diff --git a/operations/external/jpg-save.c b/operations/external/jpg-save.c
index a38601e47..cec854453 100644
--- a/operations/external/jpg-save.c
+++ b/operations/external/jpg-save.c
@@ -19,8 +19,6 @@
 #include "config.h"
 #include <glib/gi18n-lib.h>
 #include <gegl-metadata.h>
-#include <math.h>
-
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/external/matting-levin.c b/operations/external/matting-levin.c
index 3860572ed..56793e6d4 100644
--- a/operations/external/matting-levin.c
+++ b/operations/external/matting-levin.c
@@ -57,7 +57,6 @@ property_int    (active_levels, _("Active levels"), 2)
 
 #include <stdlib.h>
 #include <stdio.h>
-#include <math.h>
 
 /* XXX: We have two options for the two common installation locations of
  * UMFPACK. Ideally this would be sorted out purely in autoconf; see
diff --git a/operations/external/npd.c b/operations/external/npd.c
index 32c96ae0f..c4cc7843f 100644
--- a/operations/external/npd.c
+++ b/operations/external/npd.c
@@ -56,7 +56,6 @@ description(_("Sampler used internally"))
 
 #include "gegl-op.h"
 #include <stdio.h>
-#include <math.h>
 #include <npd/npd.h>
 #include <npd/npd_gegl.h>
 
diff --git a/operations/external/path.c b/operations/external/path.c
index fcc18d004..19a13eeb5 100644
--- a/operations/external/path.c
+++ b/operations/external/path.c
@@ -68,7 +68,6 @@ static void path_changed (GeglPath *path,
 
 #include "gegl-op.h"
 #include <cairo.h>
-#include <math.h>
 
 typedef struct StampStatic {
   gboolean    valid;
diff --git a/operations/external/png-save.c b/operations/external/png-save.c
index 8b0fa94f8..4e9e42bf3 100644
--- a/operations/external/png-save.c
+++ b/operations/external/png-save.c
@@ -20,8 +20,6 @@
 #include "config.h"
 #include <glib/gi18n-lib.h>
 #include <gegl-metadata.h>
-#include <math.h>
-
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/generated/add.c b/operations/generated/add.c
index 9726ef9a8..283c04caa 100644
--- a/operations/generated/add.c
+++ b/operations/generated/add.c
@@ -38,7 +38,6 @@ property_double (value, _("Value"), 0.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
 #ifdef _MSC_VER
 #define powf(a,b) ((gfloat)pow(a,b))
 #endif
diff --git a/operations/generated/divide.c b/operations/generated/divide.c
index 77b489238..e7be1039b 100644
--- a/operations/generated/divide.c
+++ b/operations/generated/divide.c
@@ -38,7 +38,6 @@ property_double (value, _("Value"), 1.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
 #ifdef _MSC_VER
 #define powf(a,b) ((gfloat)pow(a,b))
 #endif
diff --git a/operations/generated/gamma.c b/operations/generated/gamma.c
index 101efab93..f84ef5306 100644
--- a/operations/generated/gamma.c
+++ b/operations/generated/gamma.c
@@ -38,7 +38,6 @@ property_double (value, _("Value"), 1.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
 #ifdef _MSC_VER
 #define powf(a,b) ((gfloat)pow(a,b))
 #endif
diff --git a/operations/generated/math.rb b/operations/generated/math.rb
index 0cb7837c1..43469241a 100755
--- a/operations/generated/math.rb
+++ b/operations/generated/math.rb
@@ -68,7 +68,6 @@ property_double (value, _(\"Value\"), #{item[2]})
 
 #include \"gegl-op.h\"
 
-#include <math.h>
 #ifdef _MSC_VER
 #define powf(a,b) ((gfloat)pow(a,b))
 #endif
diff --git a/operations/generated/multiply.c b/operations/generated/multiply.c
index 44dca2ef5..ac101a172 100644
--- a/operations/generated/multiply.c
+++ b/operations/generated/multiply.c
@@ -38,7 +38,6 @@ property_double (value, _("Value"), 1.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
 #ifdef _MSC_VER
 #define powf(a,b) ((gfloat)pow(a,b))
 #endif
diff --git a/operations/generated/soft-light.c b/operations/generated/soft-light.c
index 097f28001..d84a13a92 100644
--- a/operations/generated/soft-light.c
+++ b/operations/generated/soft-light.c
@@ -45,7 +45,6 @@ property_boolean (srgb, _("sRGB"), FALSE)
 #define GEGL_OP_C_FILE       "soft-light.c"
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void prepare (GeglOperation *operation)
 {
diff --git a/operations/generated/subtract.c b/operations/generated/subtract.c
index 054e084fb..8c268fad9 100644
--- a/operations/generated/subtract.c
+++ b/operations/generated/subtract.c
@@ -38,7 +38,6 @@ property_double (value, _("Value"), 0.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
 #ifdef _MSC_VER
 #define powf(a,b) ((gfloat)pow(a,b))
 #endif
diff --git a/operations/generated/svg-12-blend.rb b/operations/generated/svg-12-blend.rb
index 1b53c6371..4faffe629 100755
--- a/operations/generated/svg-12-blend.rb
+++ b/operations/generated/svg-12-blend.rb
@@ -373,7 +373,6 @@ c.each do
 #define GEGL_OP_C_FILE       \"#{filename}\"
 
 #include \"gegl-op.h\"
-#include <math.h>
 "
     file.write file_head2
     file.write "
diff --git a/operations/transform/border-align.c b/operations/transform/border-align.c
index 04fc3ec0a..a78b86e4b 100644
--- a/operations/transform/border-align.c
+++ b/operations/transform/border-align.c
@@ -52,7 +52,6 @@ property_boolean (snap_integer, "snap to integer position", TRUE)
 
 #include "gegl-op.h"
 
-#include <math.h>
 #include <stdio.h>
 
 static GeglNode *gegl_node_get_consumer_no (GeglNode *node,
diff --git a/operations/transform/reflect.c b/operations/transform/reflect.c
index a701c64e9..a445794ee 100644
--- a/operations/transform/reflect.c
+++ b/operations/transform/reflect.c
@@ -45,8 +45,6 @@ property_double (y, _("Y"), 0.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 static void
 create_matrix (OpTransform *op,
                GeglMatrix3 *matrix)
diff --git a/operations/transform/reset-origin.c b/operations/transform/reset-origin.c
index 5dcc569e2..8498ed3b1 100644
--- a/operations/transform/reset-origin.c
+++ b/operations/transform/reset-origin.c
@@ -34,7 +34,6 @@
 
 #include "gegl-op.h"
 
-#include <math.h>
 #include <stdio.h>
 
 static void
diff --git a/operations/transform/rotate-on-center.c b/operations/transform/rotate-on-center.c
index e76ecb335..24654c7ed 100644
--- a/operations/transform/rotate-on-center.c
+++ b/operations/transform/rotate-on-center.c
@@ -46,8 +46,6 @@ property_double (origin_y, _("origin-y") , 0.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 static void
 generate_matrix (GeglMatrix3 *matrix,
                  gdouble degrees,
diff --git a/operations/transform/rotate.c b/operations/transform/rotate.c
index 9af3beea7..d004f7b48 100644
--- a/operations/transform/rotate.c
+++ b/operations/transform/rotate.c
@@ -42,8 +42,6 @@ property_double (degrees, _("Degrees"), 0.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 static void
 create_matrix (OpTransform *op,
                GeglMatrix3 *matrix)
diff --git a/operations/transform/scale-ratio.c b/operations/transform/scale-ratio.c
index 20040174b..a9e7acb36 100644
--- a/operations/transform/scale-ratio.c
+++ b/operations/transform/scale-ratio.c
@@ -45,8 +45,6 @@ property_double (y, _("Y"), 0.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 static void
 create_matrix (OpTransform *op,
                GeglMatrix3 *matrix)
diff --git a/operations/transform/scale-size-keepaspect.c b/operations/transform/scale-size-keepaspect.c
index b54575fb7..6067d8b16 100644
--- a/operations/transform/scale-size-keepaspect.c
+++ b/operations/transform/scale-size-keepaspect.c
@@ -45,8 +45,6 @@ property_double (y, _("Y"), -1.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 static void
 create_matrix (OpTransform *op,
                GeglMatrix3 *matrix)
diff --git a/operations/transform/scale-size.c b/operations/transform/scale-size.c
index 5b8e7b358..b5eaf5efc 100644
--- a/operations/transform/scale-size.c
+++ b/operations/transform/scale-size.c
@@ -45,8 +45,6 @@ property_double (y, _("Y"), 100.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 static void
 create_matrix (OpTransform *op,
                GeglMatrix3 *matrix)
diff --git a/operations/transform/shear.c b/operations/transform/shear.c
index ecaf3ec3c..cc4375c1d 100644
--- a/operations/transform/shear.c
+++ b/operations/transform/shear.c
@@ -43,8 +43,6 @@ property_double (y, _("Y"), 0.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 static void
 create_matrix (OpTransform *op,
                GeglMatrix3 *matrix)
diff --git a/operations/transform/transform-core.c b/operations/transform/transform-core.c
index a09153e51..97ad47caa 100644
--- a/operations/transform/transform-core.c
+++ b/operations/transform/transform-core.c
@@ -28,7 +28,6 @@
 #include "config.h"
 #include <glib/gi18n-lib.h>
 
-#include <math.h>
 #include <gegl.h>
 #include <gegl-plugin.h>
 
diff --git a/operations/transform/transform.c b/operations/transform/transform.c
index 640fd6d1c..f136a362b 100644
--- a/operations/transform/transform.c
+++ b/operations/transform/transform.c
@@ -37,8 +37,6 @@ property_string (transform, _("Transform"), "")
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 static void
 create_matrix (OpTransform *op,
                GeglMatrix3 *matrix)
diff --git a/operations/transform/translate.c b/operations/transform/translate.c
index 66b207dc7..ff93cc49b 100644
--- a/operations/transform/translate.c
+++ b/operations/transform/translate.c
@@ -47,8 +47,6 @@ property_double (y, _("Y"), 0.0)
 
 #include "gegl-op.h"
 
-#include <math.h>
-
 static void
 create_matrix (OpTransform *op,
                GeglMatrix3 *matrix)
diff --git a/operations/workshop/aces-rrt.c b/operations/workshop/aces-rrt.c
index 324a6c298..d764c3f76 100644
--- a/operations/workshop/aces-rrt.c
+++ b/operations/workshop/aces-rrt.c
@@ -45,7 +45,6 @@ static inline float aces_rrt (float x)
 }
 
 #define lerp(a,b,d)   ((a) * (1.0-d) + (b) * ((d)))
-#include <math.h>
 
 static inline void aces_rrt_rgb (float rin, float gin, float bin, float *rout, float *gout, float *bout)
 {
diff --git a/operations/workshop/alpha-inpaint.c b/operations/workshop/alpha-inpaint.c
index 5331b3e25..936ab23c4 100644
--- a/operations/workshop/alpha-inpaint.c
+++ b/operations/workshop/alpha-inpaint.c
@@ -181,8 +181,6 @@ property_int (source_neighbors, "source neighbors", 8)
 #include "gegl-op.h"
 #include <stdio.h>
 
-#include <math.h>
-
 #define POW2(x) ((x)*(x))
 
 #define INITIAL_SCORE 1200000000
diff --git a/operations/workshop/band-tune.c b/operations/workshop/band-tune.c
index fe1cab05d..af1b2ba16 100644
--- a/operations/workshop/band-tune.c
+++ b/operations/workshop/band-tune.c
@@ -18,7 +18,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include <math.h>
 
 #ifdef GEGL_PROPERTIES
 
diff --git a/operations/workshop/bilateral-filter-fast.c b/operations/workshop/bilateral-filter-fast.c
index fc503412d..29899e9c0 100644
--- a/operations/workshop/bilateral-filter-fast.c
+++ b/operations/workshop/bilateral-filter-fast.c
@@ -51,7 +51,6 @@ property_int (s_sigma, _("Blur radius"), 8)
 #define GEGL_OP_C_SOURCE bilateral-filter-fast.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 inline static float lerp(float a, float b, float v)
 {
diff --git a/operations/workshop/connected-components.c b/operations/workshop/connected-components.c
index ef6d01603..be20298fe 100644
--- a/operations/workshop/connected-components.c
+++ b/operations/workshop/connected-components.c
@@ -51,8 +51,6 @@ property_boolean (linear, _("Linear"), FALSE)
 #define GEGL_OP_C_SOURCE connected-components.c
 
 #include "gegl-op.h"
-#include <math.h>
-
 
 static GeglRectangle
 get_required_for_output (GeglOperation       *operation,
diff --git a/operations/workshop/external/lens-correct.c b/operations/workshop/external/lens-correct.c
index ff9d06f00..d5478cdbf 100644
--- a/operations/workshop/external/lens-correct.c
+++ b/operations/workshop/external/lens-correct.c
@@ -98,7 +98,6 @@ property_double (alpha_d, _("Model alpha d"), 1.0)
 #define GEGL_OP_C_SOURCE lens-correct.c
 
 #include "gegl-op.h"
-#include <math.h>
 #include <stdio.h>
 
 /* Struct containing the correction parameters a,b,c,d for a lens color
diff --git a/operations/workshop/external/spyrograph.c b/operations/workshop/external/spyrograph.c
index 7188bd70a..86779bd33 100644
--- a/operations/workshop/external/spyrograph.c
+++ b/operations/workshop/external/spyrograph.c
@@ -96,7 +96,6 @@ property_double (stroke_hardness, _("Hardness"), 0.6)
 #include "gegl-path.h"
 #include "gegl-op.h"
 #include <cairo.h>
-#include <math.h>
 
 typedef struct StampStatic {
   gboolean    valid;
diff --git a/operations/workshop/generated/average.c b/operations/workshop/generated/average.c
index ae173b2cb..60d94d8bf 100644
--- a/operations/workshop/generated/average.c
+++ b/operations/workshop/generated/average.c
@@ -38,7 +38,6 @@
 #define GEGL_OP_C_FILE          "average.c"
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void prepare (GeglOperation *self)
 {
diff --git a/operations/workshop/generated/blend-reflect.c b/operations/workshop/generated/blend-reflect.c
index 7b213cef4..7f640c977 100644
--- a/operations/workshop/generated/blend-reflect.c
+++ b/operations/workshop/generated/blend-reflect.c
@@ -38,7 +38,6 @@
 #define GEGL_OP_C_FILE          "blend-reflect.c"
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void prepare (GeglOperation *self)
 {
diff --git a/operations/workshop/generated/blend.rb b/operations/workshop/generated/blend.rb
index 47d73d877..35976a8b4 100755
--- a/operations/workshop/generated/blend.rb
+++ b/operations/workshop/generated/blend.rb
@@ -76,7 +76,6 @@ a.each do
 #define GEGL_OP_C_FILE          \"#{filename}\"
 
 #include \"gegl-op.h\"
-#include <math.h>
 
 static void prepare (GeglOperation *self)
 {
diff --git a/operations/workshop/generated/negation.c b/operations/workshop/generated/negation.c
index 5ceb22630..2b750dcc3 100644
--- a/operations/workshop/generated/negation.c
+++ b/operations/workshop/generated/negation.c
@@ -38,7 +38,6 @@
 #define GEGL_OP_C_FILE          "negation.c"
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void prepare (GeglOperation *self)
 {
diff --git a/operations/workshop/generated/soft-burn.c b/operations/workshop/generated/soft-burn.c
index f0cb60faa..e2b1aa177 100644
--- a/operations/workshop/generated/soft-burn.c
+++ b/operations/workshop/generated/soft-burn.c
@@ -38,7 +38,6 @@
 #define GEGL_OP_C_FILE          "soft-burn.c"
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void prepare (GeglOperation *self)
 {
diff --git a/operations/workshop/generated/soft-dodge.c b/operations/workshop/generated/soft-dodge.c
index 867b72814..7eddcc572 100644
--- a/operations/workshop/generated/soft-dodge.c
+++ b/operations/workshop/generated/soft-dodge.c
@@ -38,7 +38,6 @@
 #define GEGL_OP_C_FILE          "soft-dodge.c"
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void prepare (GeglOperation *self)
 {
diff --git a/operations/workshop/generated/subtractive.c b/operations/workshop/generated/subtractive.c
index 896d3848b..089c5b48f 100644
--- a/operations/workshop/generated/subtractive.c
+++ b/operations/workshop/generated/subtractive.c
@@ -38,7 +38,6 @@
 #define GEGL_OP_C_FILE          "subtractive.c"
 
 #include "gegl-op.h"
-#include <math.h>
 
 static void prepare (GeglOperation *self)
 {
diff --git a/operations/workshop/gradient-map.c b/operations/workshop/gradient-map.c
index 934e1e2b1..93c2c0d38 100644
--- a/operations/workshop/gradient-map.c
+++ b/operations/workshop/gradient-map.c
@@ -19,7 +19,6 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
-#include "math.h"
 
 
 #ifdef GEGL_PROPERTIES
diff --git a/operations/workshop/segment-kmeans.c b/operations/workshop/segment-kmeans.c
index 3860bce10..d62d9627e 100644
--- a/operations/workshop/segment-kmeans.c
+++ b/operations/workshop/segment-kmeans.c
@@ -43,7 +43,6 @@ property_seed (seed, _("Random seed"), rand)
 #define GEGL_OP_C_SOURCE  segment-kmeans.c
 
 #include "gegl-op.h"
-#include <math.h>
 
 #define MAX_PIXELS 100000
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]