Skip to content

bksaiki/mpfx

Repository files navigation

MPFX Number Library

A C++ number library for high-performance simulation of floating-point and fixed-point arithmetic.

Building

Prerequisites

  • CMake 3.15 or higher
  • C++20 compatible compiler
  • (Optional) GMP/MPFR for arbitrary precision support

Build Instructions

mkdir build
cd build
cmake ..
cmake --build .

Build Options

  • BUILD_SHARED_LIBS: Build shared libraries (default: ON)
  • BUILD_TESTS: Build test executables (default: ON)
  • BUILD_EXAMPLES: Build example programs (default: OFF)
  • BUILD_BENCHMARKS: Build benchmark programs (default: OFF)

Build Types

  • Debug: cmake -DCMAKE_BUILD_TYPE=Debug ..
  • Release: cmake -DCMAKE_BUILD_TYPE=Release ..

Running Tests

cd build
ctest
# or
./tests/run_tests

About

C++ number library based on safe re-rounding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors