[bug #68458] Improve GCD code for style and performance

"Dmitri A. Sergatskov" <[email protected]> Thu, 18 Jun 2026 10:48:55 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

URL:
  <https://savannah.gnu.org/bugs/?68458>

                 Summary: Improve GCD code for style and performance
                   Group: GNU Octave
               Submitter: dasergatskov
               Submitted: Thu 18 Jun 2026 02:48:51 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Performance
                  Status: None
             Assigned to: None
         Originator Name:
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Unlocked
                 Release: dev
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 18 Jun 2026 02:48:51 PM UTC By: Dmitri A. Sergatskov <dasergatskov>
There are some improvements possible for `gcd.cc` code: C++17 has
`std::gcd()`; we can use integer GCD for doubles that fit into uint64; complex
code could be simplified.

I will have a CSET shortly.

Dmitri.
-- 








    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68458>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCajQFVwAKCRCqLAuaBUf3
Trh+AP9TINUEwSf36Wi8vZ/x4dGtiJd7QJ3VW668L5f22hj8AQD/c7l+aK1kiRPb
M8m+PQu2Xn0F7TezIgT+HhE1sEshkwU=
=eqkU
-----END PGP SIGNATURE-----