IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v13y2025i2p270-d1567727.html
   My bibliography  Save this article

Accurate Sum and Dot Product with New Instruction for High-Precision Computing on ARMv8 Processor

Author

Listed:
  • Kaisen Xie

    (College of Computer Science and Technology, National University of Defense Technology, Changsha 410073, China
    College of Science, National University of Defense Technology, Changsha 410073, China)

  • Qingfeng Lu

    (College of Computer Science and Technology, National University of Defense Technology, Changsha 410073, China)

  • Hao Jiang

    (College of Computer Science and Technology, National University of Defense Technology, Changsha 410073, China)

  • Hongxia Wang

    (College of Science, National University of Defense Technology, Changsha 410073, China)

Abstract

The accumulation of rounding errors can lead to unreliable results. Therefore, accurate and efficient algorithms are required. A processor from the ARMv8 architecture has introduced new instructions for high-precision computation. We have redesigned and implemented accurate summation and the accurate dot product. The number of floating-point operations has been reduced from 7 n − 5 and 10 n − 5 to 4 n − 2 and 7 n − 2 , compared with the classic compensated precision algorithms. It has been proven that our accurate summation and dot algorithms’ error bounds are γ n − 1 γ n cond + u and γ n γ n + 1 cond + u , where ‘cond’ denotes the condition number, γ n = n · u / ( 1 − n · u ) , and u denotes the relative rounding error unit. Our accurate summation and dot product achieved a 1.69× speedup and a 1.14× speedup, respectively, on a simulation platform. Numerical experiments also illustrate that, under round-towards-zero mode, our algorithms are as accurate as the classic compensated precision algorithms.

Suggested Citation

  • Kaisen Xie & Qingfeng Lu & Hao Jiang & Hongxia Wang, 2025. "Accurate Sum and Dot Product with New Instruction for High-Precision Computing on ARMv8 Processor," Mathematics, MDPI, vol. 13(2), pages 1-19, January.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:2:p:270-:d:1567727
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/13/2/270/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/13/2/270/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:13:y:2025:i:2:p:270-:d:1567727. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.