[Cuis-dev] Bug in Integer>>#raisedTo:modulo:

Luciano Notarfrancesco luchiano at gmail.com
Mon Jun 5 09:57:20 PDT 2023


Intel, Linux, 64 bits. I tried it on the latest Cuis image and it failed.
But I think my vm is a few months old, I’ll try the latest vm.

On Mon, 5 Jun 2023 at 18:53 Nicolas Cellier via Cuis-dev <
cuis-dev at lists.cuis.st> wrote:

> Hi Luciano,
> it works well in Squeak, so I doubt it's the plugin.
> Which OS/hardware/VM flavour?
> Did you try step by step or is Cuis using the Montgomery primitive?
>
> Nicolas
>
> Le lun. 5 juin 2023 à 18:43, Luciano Notarfrancesco via Cuis-dev <
> cuis-dev at lists.cuis.st> a écrit :
>
>> The following:
>>     5445648384 raisedTo: 3 modulo: 1 << 34
>> Returns 0, which is right. But
>>     5445648384 raisedTo: 4 modulo: 1 << 34
>> Returns different numbers every time I call it (it should return 0).
>> It’s very weird… I don’t see where the randomness is coming from, perhaps
>> from LargeIntegerPlugin?
>>
>>
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
> --
> Cuis-dev mailing list
> Cuis-dev at lists.cuis.st
> https://lists.cuis.st/mailman/listinfo/cuis-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230605/038174b7/attachment.htm>


More information about the Cuis-dev mailing list