Commit Graph

25 Commits

Author SHA1 Message Date
rlar b36385e333 improve `SWAP' macro 2016-03-22 13:03:59 +01:00
rlar 6342bec8ec everywhere, drop `MALLOC()' and `REALLOC()' 2016-03-21 21:22:15 +01:00
rlar c5e0bcde04 cleanup using `hypot()' 2014-12-06 20:41:11 +01:00
dwarning 461026f2b9 fix to use garbage collector with --enable-gc 2014-02-07 13:19:35 +01:00
rlar c377b7a6b3 avoid leading underscore in preprocessor macros 2013-12-31 12:54:27 +01:00
rlar 0b5042e7da remove CVS `Id',`log' etc. keyword incantations 2011-12-13 19:57:45 +00:00
rlar 10346e055c #1/4 #include <ngspice/...> --> #include "ngspice/..." 2011-12-11 18:05:00 +00:00
rlar d26015586c #1/7 use a subdirectory "ngspice" for includes to create a uniq namespace 2011-08-20 17:27:09 +00:00
h_vogt 6d7ee3632e remoce compiler warnings 2010-12-30 14:49:35 +00:00
rlar c3f20f8321 cleanup TMALLOC etc macros 2010-10-31 19:36:57 +00:00
rlar 7b3960506f wrap tmalloc MALLOC etc, into two macros TMALLOC and TREALLOC 2010-10-28 19:32:34 +00:00
rlar 3cc50320e3 rename ALLOC, REALLOC, CALLOC, FREE, in the "src/maths/sparse" domain 2010-10-24 12:51:43 +00:00
rlar cf3514b9ae remove ancient #defines for AND OR NOT substitute with && || ! 2010-10-09 11:40:00 +00:00
rlar bfc6636b61 fix txfree() prototype 2010-08-15 17:13:17 +00:00
rlar f4d0163885 use the types MatrixPtr and SMPmatrix instead of void and char *
both are the same thing,
     MatrixPtr is used inside the sparse/* domain,
     SMPmatrix is used in the rest of spice
  remove casts, which are no longer necessary
2010-07-23 17:33:10 +00:00
rlar 1ee29c3e96 use a void* instead of a char* for anonymous `InitInfo' in src/sparse/*.c 2010-07-23 17:23:13 +00:00
rlar 2744462d01 void *AllocatedPtr 2010-07-04 17:41:17 +00:00
pnenzi 858f0442eb Bug fixing. Added externs for memory allocation functions and fixed SMPcDProd code. 2003-08-23 19:49:03 +00:00
pnenzi 63c93eca79 Modified sparse include files to obtain better separation from rest of the code.
(added spFindElement in spbuild.c needed by cider).
2003-08-13 23:27:17 +00:00
pnenzi 9ee4064c46 Added more separation between sparse and the rest of the package. 2003-08-13 13:00:12 +00:00
pnenzi 8aa1dc20a8 Bug fix: incorrect definition of CALLOC ifndef HAVE_LIBGC 2001-02-09 23:17:27 +00:00
pnenzi 8b7f406003 Modified CALLOC macro. Now uses calloc if LIBGC is not installed and malloc otherwise.
LIBGC provides a malloc that clean the allocated memory.
2001-02-06 18:29:13 +00:00
arno 7ac9278389 * src/include/spconfig.h: Removed spCOMPLEX,
spSEPARATED_COMPLEX_VECTORS and spCOMPATIBILITY defines.  This
	made including this file from src/include/spmatrix.h unnecessary.
	Moved this file to src/maths/sparse/spconfig.h.

	* src/include/spmatrix.h: Removed include of
	src/include/spconfig.h.

	* src/maths/sparse/spalloc.c, src/maths/sparse/spbuild.c,
	src/maths/sparse/spcombin.c, src/maths/sparse/spdefs.h,
	src/maths/sparse/spfactor.c, src/maths/sparse/spoutput.c,
	src/maths/sparse/spsmp.c, src/maths/sparse/spsolve.c,
	src/maths/sparse/sputils.c: The other files affected by the
	removal of spCOMPLEX, spSEPARATED_COMPLEX_VECTORS and
	spCOMPATIBILITY defines.  Also: assertions are enabled by
	default.

	* src/include/smpdefs.h, src/maths/sparse/spsmp.c: SMPmatrix is
	now a typedef for void, instead of char.  Updated all function
	declarations to match this.  Also added function prototypes not
	previously mentioned in src/include/smpdefs.h.

	* src/include/complex.h: Updates of cast from char * to void *
2000-07-03 15:28:50 +00:00
arno 1025e978bc * src/include/complex.h, src/include/macros.h,
src/include/memory.h, src/maths/sparse/spdefs.h: Moved definitions
        of complex into complex.h.  There are three different ways to
        declare a complex number in Spice.  We need further work to reduce
        this to only one.

        * src/maths/cmaths/Makefile.am, src/maths/cmaths/.cvsignore,
        src/maths/cmaths/test_cx_ph.c:  Added a new test and updated the
        corresponding support files.
2000-06-03 12:08:35 +00:00
pnenzi 978f1c32a2 Initial revision 2000-04-27 20:03:57 +00:00