X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Fgaussjordan.c;h=34cd9b64669345f838bfaa00c61db9dc5964b925;hb=ebdaa596d904a0651c8d794481288d2d629bdb3a;hp=fc7e47d0e5470e621f96c407d7086dfc78c39744;hpb=c818ee1dafaa757e8c62e2ec9257e4b021838213;p=libfirm diff --git a/ir/adt/gaussjordan.c b/ir/adt/gaussjordan.c index fc7e47d0e..34cd9b646 100644 --- a/ir/adt/gaussjordan.c +++ b/ir/adt/gaussjordan.c @@ -32,9 +32,7 @@ /* returns 0 if successful */ /* returns -1 if ill-conditioned matrix */ /*------------------------------------------------------*/ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include #include @@ -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; - 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)]