Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/polinasavelyeva/bignum
C library for arbitrary-precision arithmetic operations on large integers
https://github.com/polinasavelyeva/bignum
arbitrary-precision bignum c
Last synced: about 2 months ago
JSON representation
C library for arbitrary-precision arithmetic operations on large integers
- Host: GitHub
- URL: https://github.com/polinasavelyeva/bignum
- Owner: PolinaSavelyeva
- License: mit
- Created: 2024-02-26T15:03:32.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-07T15:59:21.000Z (10 months ago)
- Last Synced: 2024-03-07T21:26:27.294Z (10 months ago)
- Topics: arbitrary-precision, bignum, c
- Language: C
- Homepage:
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bignum
Bignum is a C library for arbitrary-precision arithmetic operations on large integers.
## Main Features
- `bignum_add`: Performs addition of two big ints.
- `bignum_diff`: Calculates the difference between two big ints.
- `bignum_mult`: Multiplies two big ints.
- `bignum_div`: Divides one big int by another.
- `bignum_mod`: Calculates the modulus of one big int by another.
- `str_to_bignum`: Converts a string representation of an int to a big int.
- `bignum_to_str`: Converts a big int to its string representation.## Building
To build the Bignum library, follow these steps:
1. Clone the repository:
```
git clone https://github.com/PolinaSavelyeva/Bignum.git
```2. Navigate to the Bignum directory:
```
cd Bignum
```3. Build the library using CMake:
```
cmake .
make
```## Build Requirements
- CMake (version 3.10 or higher)
- clang compiler supporting C11 standard
- valgrind