Bill Allombert on Mon, 16 Sep 2024 19:13:43 +0200
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: A missing (?) function: exponentfp(x)
|
- To: pari-dev@pari.math.u-bordeaux.fr
- Subject: Re: A missing (?) function: exponentfp(x)
- From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
- Date: Mon, 16 Sep 2024 19:13:39 +0200
- Delivery-date: Mon, 16 Sep 2024 19:13:43 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=math.u-bordeaux.fr; s=2022; t=1726506821; bh=SEmX2KRPfoeCQznFMeTMgX77nCtdQQdQ1wF0CQ3LqiM=; h=Date:From:To:Subject:References:In-Reply-To:From; b=dwOxbiAIGbCu9S4oq8H12wU551LaOuF8nq3zBRgWRxuKHRttCh5o599Kdk2hMeuyH MKWboLhDHvaVgyIFUyjIHEKPn0EbirPDTXASTBkfX9FP8Xu8dh3p6q38U79OiX53f9 O1oG6makHxk89b0rDpA3ajFCPU1frX5+L2ofFq/eKidCMM+O8jcBbxiUkt2NRpOJA5 AU7t15LYDug95HbLATctdPAu1arU5tWYbYlR0gYe6zTmQ143AGuQRaAE+kMLiGjejW H20tzF8OhnPViZ1bUr/sdRMVoK6vYPB/mp2Y0wt+mgWYgeR0DVTWLE3IJTab2vqTZB mLKGue9c/hu6CCJwuC+BFEDarJSBRbRNZ/4kQSD1xQyud4OdCSUI3RfbCWAodbs/gV xdd4bUQmWSVqyHYmPbt15vyd7fLJmtikDKikqM/yUVp14HJw3JPxdimiCoTwqc8AGu EZNLeYz8Poqehr9brKuCzovBZJI6KNUuyPmEKBWLv1gbNEFjCJVl5+llPTRwMf/Gts 0jZvwV7qSVtC7ucaU30zcZRa3f3QYb5QTSdePPEGtYcOz39Z0ADzO5HxjhJnhc+QVQ 6iwPiP4V3l13wxfZ4/aeqOvMqRd/tj19yXwNvVelHcdmAQBIh7NteeasABz4DVaTSD Y4bOp6KKUxaLq0OjMqkuaaUo=
- In-reply-to: <Zuhlf8VLg6rcH8VI@debian.attlocal.net>
- Mail-followup-to: pari-dev@pari.math.u-bordeaux.fr
- References: <ZuVStcuY1kXNpxs6@debian.attlocal.net> <ZuVYiLiVUwtZQKGd@seventeen> <CAMLkfFQOzvh9+dnqX4yUQeM_wU=HHiqKM3sNTUGC1wW821p6Cg@mail.gmail.com> <Zuhlf8VLg6rcH8VI@debian.attlocal.net>
On Mon, Sep 16, 2024 at 10:06:07AM -0700, Ilya Zakharevich wrote:
> On Sat, Sep 14, 2024 at 12:31:57PM +0200, Loïc Grenié wrote:
> > In gp you can cheat
> >
> > ? install(dbllog2,lG);
> > ? install(dbltor,L);
> > ? flog2(x)=dbltor(dbllog2(x));
> > ? my(il2=1/log(2));setrand(1);for(i=1,10^6,log(random(1.)<<4)*il2)
> > cpu time = 3,868 ms, real time = 3,868 ms.
> > ? setrand(1);for(i=1,10^6,flog2(random(1.)<<4))
> > cpu time = 655 ms, real time = 656 ms.
>
> On my Intel x64 CPU, this gives
>
> *** in function flog2: dbltor(dbllog2(x))
> *** ^------------------
> *** attempt to change built-in dbltor.
>
> Do not know whether it is related to the ABI problems Bill wrote
> about…
This is unrelated. You probably did the install() after having defined
flog2(), so they were not taken into account by the bytecode compiler
when compiling flog2
Cheers,
Bill.