<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Ah, sorry, that was for #39834 - wrong issue!  Disregard.</p>
    <p>Gareth aka. Kit<br>
    </p>
    <div class="moz-cite-prefix">On 18/08/2022 07:28, J. Gareth Moreton
      via fpc-devel wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:0c8a8d65-7dd0-5f3b-dd04-39c02b792fc1@moreton-family.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <p>Thanks Ondrej.</p>
      <p>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.</p>
      <p>Gareth aka. Kit<br>
      </p>
      <div class="moz-cite-prefix">On 18/08/2022 07:06, Ondrej Pokorny
        via fpc-devel wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:8f11ddb8-ea86-01e1-842e-122acd56e48a@kluug.net">
        <meta http-equiv="content-type" content="text/html;
          charset=UTF-8">
        <p>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.</p>
        <p>Ondrej<br>
        </p>
        <div class="moz-forward-container"><br>
          -------- Weitergeleitete Nachricht --------
          <table class="moz-email-headers-table" cellspacing="0"
            cellpadding="0" border="0">
            <tbody>
              <tr>
                <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Betreff:
                </th>
                <td>[Lazarusdev] Moving issue 39853 to FPC project</td>
              </tr>
              <tr>
                <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Datum:
                </th>
                <td>Thu, 18 Aug 2022 03:51:33 +0300</td>
              </tr>
              <tr>
                <th valign="BASELINE" nowrap="nowrap" align="RIGHT">Kopie
                  (CC): </th>
                <td>Maxim Ganetsky <a class="moz-txt-link-rfc2396E"
                    href="mailto:ganmax@narod.ru" moz-do-not-send="true"><ganmax@narod.ru></a></td>
              </tr>
            </tbody>
          </table>
          <br>
          <br>
          Hello.<br>
          <br>
          Could someone move this issue to FPC project please:<br>
          <a class="moz-txt-link-freetext"
            href="https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39853"
            moz-do-not-send="true">https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/39853</a><br>
          <br>
          <pre class="moz-signature">-- 
Best regards,
 Maxim Ganetsky                  <a class="moz-txt-link-freetext" href="mailto:ganmax@narod.ru" moz-do-not-send="true">mailto:ganmax@narod.ru</a>
</pre>
        </div>
        <br>
        <fieldset class="moz-mime-attachment-header"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-devel maillist  -  <a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:fpc-devel@lists.freepascal.org" moz-do-not-send="true">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" moz-do-not-send="true">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
      </blockquote>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
fpc-devel maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
    </blockquote>
  </body>
</html>