Bill Allombert on Sun, 03 Dec 2023 21:53:03 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
libpari precision handling changes
|
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: libpari precision handling changes
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Sun, 3 Dec 2023 21:52:55 +0100
- Delivery-date: Sun, 03 Dec 2023 21:53:03 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1701636777; bh=OHrohBUiiz6znp4i2y6SRyP062/K6WfZh+fbJkvHIGw=; h=Date:From:To:Subject:From; b=I0Ch+YI94Glso/V3OE4qYwD1Kmi/gL+iwSYBnBI5oGz8GFOodPKOMbGHm8xCRtvrg k9BOoKeRhrqtVeq/ipaFgtrtsw1ve+zOM/hi68q3bz7ZG0oP7zBvH7nEjrG8jcEkK/ /2kZmoQia3iGrDfGHBuYas0FBcboj665rL46WhyaTaVX0QzzuvIdT6JVzKCzX7zF1O WRrWaAB94L9M9a11v1gAclfXxUEHP0ilS9cmy18LmXUoSItpKmCzy2tXjx3tG89HMb 4hNxkUkt1vWup/juDkif2UpTaZ2ozZr6K6twGv1uF3xY/qWucqFUwuwCVFS+lpv3Ll w54EBY2OLp9SSjhS+bxixa8VBjNB2ZqLz2qC1BSfEONYg3HZFHZwfCzTYIEg71oJQf wKW9hXGsICL3AxMRj/Q6Tl00wScDpUnJ2MKbCmK8/zIHjpvj9SPA1kEn63EnfyBYG+ 3RYS62QjLfQPCIxYuvEmsd46b/ZUboW55KmEAuso9F1XTAJOVmENdsPQQjOpjiVGYc w4P5J9+yTFT2PWiLTYB4nwOqw+4GMx+xYTHO8xEGBmCkkuPkQv3O3WibwIEwejq3nH jAgnphqVXFLU8fDM3yxgDoCC8G5RxgcjfkEEqt+HhtHdmM0K55icoLwFV6YDygpQnM Z0gWgrHKvDaPTnDRc4K/+vxA=
- Mail-followup-to: pari-dev@pari.math.u-bordeaux.fr
Dear PARI developers,
I committed a change to the way the precision is manipulated in the
C library.
Now the precision is a multiple of BITS_IN_LONG.
DEFAULTPREC is 64 (instead of 3)
MEDDEFAULTPREC is 128 (instead of 4)
BIGDEFAULTPREC is 192 (instead of 5)
realprec return a number of bits, cgetr takes a number of bits as input, the
prototype code 'p' of 'install' passes a number of bits so every function that
takes the argument prec, will receive a number of bits etc.
While this is a major change, this should not break most C programs that used
the libpari API correctly. For example, this does not impact GP2C-generated
code.
However this might affect programs written in other languages that they cannot
use the C headers.
This does not affect GP.
Cheers,
Bill.