[ANN] gmpxx_mkII.h: Yet another GMP C++ Wrapper for High-Precision Calculations

maho nakata nakatamaho at outlook.com
Fri Oct 11 06:50:47 CEST 2024


Dear Hans Åberg

I don't use templates extensively, and I implemented mpf_class as a typical class.
For performance comparison, please have a look,
https://github.com/nakatamaho/gmpxx_mkII?tab=readme-ov-file#performance-improvements-and-benchmarks
Best regards,
 Nakata Maho


________________________________
From: Hans Åberg <haberg_1 at icloud.com>
Sent: Friday, October 11, 2024 5:52 AM
To: maho nakata <nakatamaho at outlook.com>
Cc: gmp-discuss at gmplib.org <gmp-discuss at gmplib.org>
Subject: Re: [ANN] gmpxx_mkII.h: Yet another GMP C++ Wrapper for High-Precision Calculations


> On 9 Oct 2024, at 16:20, maho nakata <nakatamaho at outlook.com> wrote:
>
> I am pleased to announce the release of gmpxx_mkII.h, a new C++ wrapper designed to enhance high-precision arithmetic using the GMP library. This project is licensed under the 2-clause BSD license, offering flexible integration for both open-source and proprietary projects.
>
> Key Features of gmpxx_mkII.h:
>
> *   High-Level Source Compatibility: gmpxx_mkII.h is designed to be highly compatible with the existing gmpxx.h, allowing for a smooth transition.
>  *  Enhanced Usability: The wrapper simplifies usage by removing template limitations and avoiding complex macros, providing a clearer and more maintainable interface.

In view of C++11 move operators and C++17 copy elision, I wonder if there is any performance gain by the use of templates. They seem to make user programming difficult. (I have my own C++ wrapper.) —Performance comparisons would be interesting.




More information about the gmp-discuss mailing list