This is the mail archive of the
gsl-discuss@sourceware.cygnus.com
mailing list for the GSL project.
Re: memory allocation
- To: Thomas Walter <walter at pctc dot chemie dot uni-erlangen dot de>
- Subject: Re: memory allocation
- From: Brian Gough <bjg at network-theory dot co dot uk>
- Date: Tue, 28 Mar 2000 22:00:46 +0100 (BST)
- Cc: gsl-discuss at sourceware dot cygnus dot com
- References: <200003281141.NAA14480@server2.chemie.uni-erlangen.de>
It's unlikely in practice but I believe, in principle, the
representation of zero could be different in an implementation-
dependent extended floating point format, such as long double.
Thomas Walter writes:
> Is there a special reason to not use the systems 'calloc()' but
> 'malloc()' followed by a loop over all elements to set them to a
> initial value of zero?