[gegl] Replace bcopy and bzero by memcpy and memset and include math.h



commit ad3666aad2abd05b1712cd1b9260d31e881042da
Author: Michael Schumacher <schumaml gmx de>
Date:   Wed Nov 24 19:53:35 2010 +0100

    Replace bcopy and bzero by memcpy and memset and include math.h

 operations/common/fattal02.c   |    3 ++-
 operations/common/mantiuk06.c  |    3 ++-
 operations/common/reinhard05.c |    1 +
 3 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/operations/common/fattal02.c b/operations/common/fattal02.c
index d3f348e..c823c46 100644
--- a/operations/common/fattal02.c
+++ b/operations/common/fattal02.c
@@ -25,6 +25,7 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
+#include <math.h>
 
 
 #ifdef GEGL_CHANT_PROPERTIES
@@ -130,7 +131,7 @@ fattal02_copy_array (const gfloat *input,
                      gsize         size,
                      gfloat       *output)
 {
-  bcopy (input, output, size * sizeof (input[0]));
+  memcpy (output, input, size * sizeof (input[0]));
 }
 
 
diff --git a/operations/common/mantiuk06.c b/operations/common/mantiuk06.c
index d8d1c7f..9dc91e8 100644
--- a/operations/common/mantiuk06.c
+++ b/operations/common/mantiuk06.c
@@ -23,6 +23,7 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
+#include <math.h>
 
 
 #ifdef GEGL_CHANT_PROPERTIES
@@ -453,7 +454,7 @@ static inline void
 mantiuk06_matrix_zero (guint   n,
                        gfloat *m)
 {
-  bzero (m, n * sizeof (gfloat));
+  memset(m, 0, n * sizeof (gfloat));
 }
 
 /* calculate divergence of two gradient maps (Gx and Gy)
diff --git a/operations/common/reinhard05.c b/operations/common/reinhard05.c
index b6ed8f5..7b6931e 100644
--- a/operations/common/reinhard05.c
+++ b/operations/common/reinhard05.c
@@ -19,6 +19,7 @@
 
 #include "config.h"
 #include <glib/gi18n-lib.h>
+#include <math.h>
 
 
 #ifdef GEGL_CHANT_PROPERTIES



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