"Fixed precision" integers

Vincent Lefevre vincent at vinc17.org
Wed Aug 29 16:19:03 CEST 2007


On 2007-08-29 09:07:00 -0400, point14 at magma.ca wrote:
> Can GMP data types do this? It seem that if I use the low level
> functions I might be able to do this.

FYI, I do that with the MPN layer, but in my case, I only need
additions. Multiplications by small constants can be used too.
But if you need a full multiplication, you need to implement it.
You can use the mpn multiplication, but it's not very efficient
if you only want the lower part.

-- 
Vincent Lefèvre <vincent at vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


More information about the gmp-discuss mailing list