Karim Belabas on Mon, 25 Dec 2023 20:53:34 +0100
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Finding bitness of gp
|
- To: Ilya Zakharevich <nospam-abuse@ilyaz.org>
- Subject: Re: Finding bitness of gp
- From: Karim Belabas <Karim.Belabas@math.u-bordeaux.fr>
- Date: Mon, 25 Dec 2023 20:53:29 +0100
- Arc-authentication-results: i=1; smail; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1703534011; c=relaxed/relaxed; bh=HdDdmMcLYP1N6BmArPbEFshZV1mu+x89DEwkbevn6Tw=; h=DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: Mail-Followup-To:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To; b=CIlV7uFGpQopvtG2Sm+VaPXx50CoKwU3dd+fRHhUuMPIMXfLcL+dugbzqku6rpLcaMjJYd+VRV7Nz03LM2nL3iQat+nzXR79HvpeU/3iB3MjfxrmSmUle70Nna2C/T78IJUDzxbaLTZW5N78AA371+LgEwhAzN/iWn30X5vAmMUnRkQIZOpBOpj5Fp20ZiRaF6BSYNS8X6vy++QXnqvtsj4JMecXf7TD8wIdGUA0H1E1Il4JTHHvvgS8EAbYTKlYTmaFSPm4K5qvPsf52mzCri3RWfwpbpjiw71kPte62gsBZ2ymx4ghvXY7OHlBPlr2/x1PF/1q5qle+d1JGZNJQXkqDslHUE0vciA1yCc5jdT/oBbdWOgSce7aoMrd+5XmZXKPdrYZqKMDCUZHh9aBHIZVMhHy5wmkGRr2PALv5bLkzsN7gwCM9dXVUSyY1HnmuUFjQMe46DjEKcxTM808h3O9Th4O+0z485vx1VptatCzPJ4hpSL6j9XVY+rw7QbqLjZVdVw2eoB6vniSCmeyorrI63bzHgVu5AVmkh4SX9bE0Qn79RlkzLzrg/OK8akaviS98PYd2Vw9/SCfRTYcdQgWOcMrk4yYcfZr5vjT1NWgFZcHyCvgYLFop/eL0FdnhxQch/NG+SldO+ogphM+kMuAwSMHe5B2dPU3M5hiTOw=
- Arc-seal: i=1; a=rsa-sha256; d=math.u-bordeaux.fr; s=openarc; t=1703534011; cv=none; b=bL+LpZjkuFCKnDLlq9LzChSv4Ne7hTu2p3mJZw4ewg/80O9zlGG35reUSvvQr7uc8ULBWB+QdOZYvGJ0K5tqf2IcWm8rbLUkb3EOrC19BwwqCgp7YSkz27ojDvj6KfK42c4a6QGFQnSApCE9Zu+5m5eFqcir2sixshyCe8qbkOyOFKJ3K7QFvMSGPV6CgHpVrZg73cLFTTfsblt9p+XY4THadyYCwRFDNSqv6wZbmN8Qc9V2tH5PIMQr2ZdT0CcG5g3BtXVwszi008VBwebqEzme2KRQCOWusH8OHT0praQ6fEIB0uCZWrIT8ABZxCUMxadrT9u5itZuFjOq9HCBvkgiKlWbAV2oGKtEvJUgHxrDhsPYBCKrp6m0yRMe26gg4RX44Xwl84xkU1m5B9RZDTcWsza4AHXwepwFgJW3sTxFJfbNTWbExwxvtQKH+pN0Io3qoT3B66wPEaf6Fs1qVc/xLl8gIof+oyMFL5lumogAcvmiXUbQtNoZbxZmuTXrfcXtmpoT8I+fT2AGDFSXhCoC4K/JENYnsbCpIlyQ183/fochFU7F2gHrn36Ns0iHrh24P0bi5Bh+55tmm9okbEBxHila45y08yDAseEVGyaGc7NcI51Pfmkux6gYLdO6DmCoeplIsqk8F5ioNVOjfzNkKmxj9/PAZ6QwhwdBtas=
- Authentication-results: smail; dmarc=none header.from=math.u-bordeaux.fr
- Authentication-results: smail; arc=none
- Cc: pari-dev@pari.math.u-bordeaux.fr
- Delivery-date: Mon, 25 Dec 2023 20:53:34 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=math.u-bordeaux.fr; s=2022; t=1703534011; bh=HdDdmMcLYP1N6BmArPbEFshZV1mu+x89DEwkbevn6Tw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OTBaPQCITBqvSwWwTz7oTo/nHden4ojgmW0odvnbQ1LGfAJT7zionYgRZZudIPeCo J/BKt+L4WfEbFzQAT4n90nDCYFowbU0ZkuuDJnyxFYdENGw9WEfydtOvVt11LrHn03 4ty0irtNppiKnT0Ke5n391bBfkrR3VDz+iUgCStrKOCbJLLt6h/1tSJzN68WeGS7nw b2sRjdcTa6en9KWsB9oI/jtsV38Wa88PMKdBiqeJwmM4+TGDJZe4q1dc+081E/GPlU BEOIGMM6/Xfkt7TiUgcaPe/ds000RVBE838MR64lOsXWPUi7Z8MfHOuWj+2XmrJcRY cwTowTKsHfA7gPtZ7YuIGPjUospm07Y1GsbudrLzlxGCA89enpWFFpmLA7v/tAzGEr L7KLvoUmbVnbG85sp21qPantm95X6CHbkY2RK7qzHCLmeSsMrS1ODkMcRPVrIkRlCF 21iftHK7q0g7GsZK0eeg57HtrrvfWH8e76rAB3+MGOR1KiBnuQ19Tbos2EzN9BZNmH psPxcyMOvBWqDLEhGpm0QqOdEd3GWS8bq3N5rE1DoG3Q2zK5iOXGl+PDH9GT7aFOa6 O5IAnYzh+z6xaPtEsi1PaX4voXJYnWg1MYHOyMKNBylMRvfPuSTfqKC8oNU1/Fasmq 2LpSr7LPEZMVohwmLbxOTsYw=
- In-reply-to: <ZYmn7lrSHPvfUXjM@login.math.berkeley.edu>
- Mail-followup-to: Ilya Zakharevich <nospam-abuse@ilyaz.org>, pari-dev@pari.math.u-bordeaux.fr
- References: <ZYE2Rsr+QQaOhT/d@login.math.berkeley.edu> <ZYFnYr7cxQC+h44O@seventeen> <ZYkg8yJiLoQD73Xi@login.math.berkeley.edu> <ZYmn7lrSHPvfUXjM@login.math.berkeley.edu>
* Ilya Zakharevich [2023-12-25 17:04]:
> On Sun, Dec 24, 2023 at 10:28:03PM -0800, Ilya Zakharevich wrote:
> > On Tue, Dec 19, 2023 at 10:50:26AM +0100, Bill Allombert wrote:
> > > > Should not there be O(1) way to find the current localbitprecision()?
> >
> > > Yes, it is called getlocalbitprec().
> >
> > As you could see from this mail thread, this name is not discoverable.¹⁾
>
> Another missing (or not discoverable) piece of info: bitness of gp.
> It seems to be silly (and very slow with high \p) to do
>
> (08:01) gp > bitprecision(bitprecision(1.,1))
> %2142 = 64
It's documented in develop.tex that
sizebyte(0)==16
can (and, for now, should) be used to detect 64-bit arch. And
sizebyte(0)==8
for 32 bits.
Cheers,
K.B.
--
Pr. Karim Belabas, U. Bordeaux, Vice-président en charge du Numérique
Institut de Mathématiques de Bordeaux UMR 5251 - (+33) 05 40 00 29 77
http://www.math.u-bordeaux.fr/~kbelabas/