Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Big Number Toolbox Libray: A big number library built from scratch in C

License

Notifications You must be signed in to change notification settings

zambodev/big-number-toolbox-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Build

Big Number Toolbox Library

This library implements mathematical operations for numbers over the usual 64bit limit as efficently as possible and tries to keep a reasonable readability


Get started

# Build the library and create the archive
make

# Link into a project
gcc -o output_name your_file_name -l bntl -I header_folder -L lib_folder
    
# Run test from test/ folder
# Use "debug" flag to run in debug mode (gcc -Wall -DDEBUG)
make debug test_name.c

Code sample

	/* Coming soon... */

Info

  • Numbers: Chunks of unsigned long, which size depends on the architecture to match full CPU capabilities, dynamically allocated
  • Byte order: The number's byte order is the same as the CPU's

Contribute

To contribute follow the istructions in CONTRIBUTING.md
Devlopment version of the repo is in the "dev" branch

About

Big Number Toolbox Libray: A big number library built from scratch in C

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project