GNU bug report logs - #10519
guile and (mini-)gmp

Previous Next

Package: guile;

Reported by: nisse <at> lysator.liu.se (Niels Möller)

Date: Sun, 15 Jan 2012 22:01:02 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: nisse <at> lysator.liu.se (Niels Möller)
To: Mark H Weaver <mhw <at> netris.org>
Cc: 10519 <at> debbugs.gnu.org, Torbjorn Granlund <tg <at> gmplib.org>
Subject: bug#10519: guile and (mini-)gmp
Date: Sat, 28 Jan 2012 10:49:03 +0100
Mark H Weaver <mhw <at> netris.org> writes:

> It would be good if you could duplicate the `mp_set_memory_functions'
> interface in mini-gmp.

I'm looking into this. I found that the GMP interface has one awkward
feature: The current allocation size must be passed as an argument to
the free and realloc functions. See
http://gmplib.org/list-archives/gmp-devel/2012-January/002161.html

Does guile make any use of these size arguments? I'm considering having
mini-gmp *not* support this part of the allocation interface, and
instead always pass zero, for the sake of simplicity. I imagine that the
vast majority of users of the custom alloction interface ignore these
argments anyway, and store allocation size for each block elsewhere,
e.g., in some block header.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.




This bug report was last modified 8 years and 217 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.