Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2022-08

Fwd: Moving issue 39853 to FPC project

4 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ondrej Pokorny

Hello it looks like only people with FPC developer status can move issues to the FPC project. Therefore I forward the request to fpc-devel.

Ondrej

-------- Weitergeleitete Nachricht --------
Betreff: [Lazarusdev] Moving issue 39853 to FPC project Datum: Thu, 18 Aug 2022 03:51:33 +0300
Kopie (CC): Maxim Ganetsky

Hello.

Could someone move this issue to FPC project please: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39853

Best regards, Maxim

Reply by email

J. Gareth Moreton
to Ondrej Pokorny

Thanks Ondrej.

In the meantime, I've found the problem and am testing a fix. Basically the function that computes the magic number for a given bit size doesn't sign-extend it to the full size.  In the given example, the signed divisior +60 for 32-bit produces the multiplicand $88888889.  However, under x86_64, it is not sign-extended to the full 64-bit internal type... that is, the variable holds $00000000 88888889 instead of $FFFFFFFF 88888889. This causes a later condition that checks if the value is less than 0 to malfunction.

Gareth aka. Kit

Ondrej Pokorny wrote 26 lines
Hello it looks like only people with FPC developer status can move issues to the FPC project. Therefore I forward the request to fpc-devel. Ondrej -------- Weitergeleitete Nachricht -------- Betreff: [Lazarusdev] Moving issue 39853 to FPC project Datum: Thu, 18 Aug 2022 03:51:33 +0300 Kopie (CC): Maxim Ganetsky Hello. Could someone move this issue to FPC project please: https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39853 -- Best regards, Maxim _______________________________________________ fpc-devel maillist https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email

J. Gareth Moreton
to J. Gareth Moreton: Thanks Ondrej. In the meantime, I've found the problem and am testing a fix. Basically…

Ah, sorry, that was for #39834 - wrong issue!  Disregard.

Gareth aka. Kit

J. Gareth Moreton wrote 45 lines
Thanks Ondrej. In the meantime, I've found the problem and am testing a fix. Basically the function that computes the magic number for a given bit size doesn't sign-extend it to the full size.  In the given example, the signed divisior +60 for 32-bit produces the multiplicand $88888889.  However, under x86_64, it is not sign-extended to the full 64-bit internal type... that is, the variable holds $00000000 88888889 instead of $FFFFFFFF 88888889.  This causes a later condition that checks if the value is less than 0 to malfunction. Gareth aka. Kit On 18/08/2022 07:06, Ondrej Pokorny via fpc-devel wrote: > > Hello it looks like only people with FPC developer status can move > issues to the FPC project. Therefore I forward the request to fpc-devel. > > Ondrej > > > -------- Weitergeleitete Nachricht -------- > Betreff: [Lazarusdev] Moving issue 39853 to FPC project > Datum: Thu, 18 Aug 2022 03:51:33 +0300 > Kopie (CC): Maxim Ganetsky > > > > Hello. > > Could someone move this issue to FPC project please: > https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39853 > > -- > Best regards, > Maxim > > _______________________________________________ > fpc-devel maillist > https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel _______________________________________________ fpc-devel maillist https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply by email