[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gmp] enhancement request

From: Benjamin V Hinkle
Subject: [Bug-gmp] enhancement request
Date: Mon, 4 Sep 2000 14:18:01 -0400


I'm working on a wrapper for mpf for MATLAB, and I'm finding myself
writing a layer on top of mpf that makes mpf objects more "position
independent". By position independent I mean that the float occupies one
continuous chunk of memory and you can copy that memory and have another
legal float object (ie - the layer manages the internal pointers). This
way a float behaves more like a double than the current mpf object.

It's actually very simple to do this. The most obvious way is to put the
limbs (_mp_limbs, say) right after the header structure and, when it
needs to create a legal mpf object, sets the limb pointer _mp_d to
&_mp_limbs. It's also easy to change the mpf routines to just take
&_mp_limbs to get a pointer to the limbs instead of using _mp_d.

I'm wondering if anyone is working on such an mpf datatype and
corresponding routines. If not then I'd like to work on it myself (if
there is interest). Then I can get back to my original project of writing
the MATLAB wrapper.

Ben Hinkle

reply via email to

[Prev in Thread] Current Thread [Next in Thread]