8.21. MPC-1.2.1

The MPC package contains a library for the arithmetic of complex numbers with arbitrarily high precision and correct rounding of the result.

Approximate build time: 0.3 SBU
Required disk space: 21 MB

8.21.1. Installation of MPC

Update helper scripts to allow compilation on loongarch:

tar xf ../config-20210826.tar.xz --strip-components=1 -C build-aux

Prepare MPC for compilation:

./configure --prefix=/usr    \
            --disable-static \
            --docdir=/usr/share/doc/mpc-1.2.1

Compile the package and generate the HTML documentation:

make
make html

To test the results, issue:

make check

Install the package and its documentation:

make install
make install-html

8.21.2. Contents of MPC

Installed Libraries: libmpc.so
Installed Directory: /usr/share/doc/mpc-1.2.1

Short Descriptions

libmpc

Contains complex math functions