view src/metis-undef-log2.patch @ 1371:c9905856c931

new packages: metis suitesparse
author Alois Schlögl <alois.schloegl@gmail.com>
date Tue, 16 Nov 2010 19:03:38 +0100
parents
children
line wrap: on
line source

This file is part of mingw-cross-env.
See doc/index.html for further information.

diff urM a/metis-4.0/Lib/util.c b/metis-4.0/Lib/util.c
*** a/metis-4.0/Lib/util.c	1998-11-30 17:26:50.000000000 +0100
--- b/metis-4.0/Lib/util.c	2010-06-21 23:32:33.783674276 +0200
@@ -506,13 +506,3 @@
    }
  }
  
- /*************************************************************************
- * This function returns the log2(x)
- **************************************************************************/
- int log2(int a)
- {
-   int i;
- 
-   for (i=1; a > 1; i++, a = a>>1);
-   return i-1;
- }

diff urM a/metis-4.0/Lib/proto.h b/metis-4.0/Lib/proto.h
*** a/metis-4.0/Lib/proto.h	1998-11-30 17:26:50.000000000 +0100
--- b/metis-4.0/Lib/proto.h	2010-06-21 23:33:24.194921631 +0200
@@ -459,4 +459,3 @@
  void srand48(long);
  int ispow2(int);
  void InitRandom(int);
- int log2(int);