projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
backend_marked was a buggy/wrong concept, removed it
[libfirm]
/
ir
/
adt
/
gaussjordan.c
diff --git
a/ir/adt/gaussjordan.c
b/ir/adt/gaussjordan.c
index
fc7e47d
..
34cd9b6
100644
(file)
--- a/
ir/adt/gaussjordan.c
+++ b/
ir/adt/gaussjordan.c
@@
-32,9
+32,7
@@
/* returns 0 if successful */
/* returns -1 if ill-conditioned matrix */
/*------------------------------------------------------*/
/* returns 0 if successful */
/* returns -1 if ill-conditioned matrix */
/*------------------------------------------------------*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
#include "config.h"
-#endif
#include <math.h>
#include <stdlib.h>
#include <math.h>
#include <stdlib.h>
@@
-46,8
+44,8
@@
int firm_gaussjordansolve(double *A, double *vec, int nsize)
{
int i, j, row, col, col2, biggest_r = 0, biggest_c = 0, t;
double big, temp, sum;
{
int i, j, row, col, col2, biggest_r = 0, biggest_c = 0, t;
double big, temp, sum;
- double *scramvec =
xmalloc(nsize * sizeof(*scramvec)
);
- int
*x = xmalloc(nsize * sizeof(*x)
);
+ double *scramvec =
XMALLOCN(double, nsize
);
+ int
*x = XMALLOCN(int, nsize
);
int res = 0;
#define _A(row,col) A[(row)*nsize + (col)]
int res = 0;
#define _A(row,col) A[(row)*nsize + (col)]