[gegl] newsprint: remove custom math functions



commit 5d2259b804daeacc6dbcf31cbd407b8d8cda7f90
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed May 27 20:05:43 2020 +0200

    newsprint: remove custom math functions

 operations/common/newsprint.c | 24 ------------------------
 1 file changed, 24 deletions(-)
---
diff --git a/operations/common/newsprint.c b/operations/common/newsprint.c
index 5692060cd..08c048cf3 100644
--- a/operations/common/newsprint.c
+++ b/operations/common/newsprint.c
@@ -191,30 +191,6 @@ property_double (angleboost, _("Angle Boost"), 0.0)
 
 #include <math.h>
 
-
-static inline float int_fabsf(float x)
-{
-  union {float f; uint32_t i;} u = {x};
-  u.i &= 0x7fffffff;
-  return u.f;
-}
-#define fabsf int_fabsf
-
-static inline int int_floorf (float x)
-{
-  int i = (int)x;       /* truncate */
-  return i - ( i > x ); /* convert trunc to floor */
-}
-
-#define floorf int_floorf
-
-static inline float int_fmodf(float x, float y)
-{
-  return x - y * floorf(x/y);
-}
-
-#define fmodf int_fmodf
-
 /* for details and more liberal licensing of the following function, see
    https://pippin.gimp.org/spachrotyzer/ */
 


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