Sparse matrix package


To ng-spice-devel@ieee.ing.uniroma1.it
From Paolo Nenzi <pnenzi@ieee.ing.uniroma1.it>
Date Tue, 6 Feb 2001 13:46:08 +0100 (CET)
Delivered-To mailing list ng-spice-devel@ieee.ing.uniroma1.it
Mailing-List contact ng-spice-devel-help@ieee.ing.uniroma1.it; run by ezmlm
Reply-To ng-spice-devel@ieee.ing.uniroma1.it

Hi all,

I hav made a small change ithe code of sparse (spdefs.h). I was looking at
the package and discovered that the calloc routine was emulated via a
malloc plus a for loop to clean memory. I have changed it using calloc
if HAVE_LIBGC (garbage collector), which is faster that the malloc+for. 
If HAVE_LIBGC is defined, the GC_malloc cleans the allocated memory, so
the calloc is mow a simple call to malloc. The code is not yet in CVS
(will be thi evening, CET). 

Bye,
Paolo


Partial thread listing: