https://github.com/aveek-saha/intal
C library to perform calculations on integers of arbitrary length
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (4.5%) to scientific vocabulary
Keywords
Repository
C library to perform calculations on integers of arbitrary length
Basic Info
- Host: GitHub
- Owner: Aveek-Saha
- License: mit
- Language: C
- Default Branch: master
- Size: 14.6 KB
Statistics
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
Integers of Arbitrary Length
Intal is short for Integers of Arbitrary Length.
An intal (an integer of arbitrary length) is an object pointed to by a void* pointer. An intal can be created by intal_create() by providing a char string of a nonnegative integer provided in decimal digits. Some intals are created out of some functionalities like intal_add(), which creates a new intal.
Responsibility of destroying the intals created lies with the client by calling intal_destroy(), which will free whatever memory allocated during the creation of intal.
There is no theoretical limit to the size of the integer, except for memory limitations of the process (Operating System).
The operations that can be done on intals are- * Addition * Subtraction * Multiplication(Karatsuba) * Division * Exponent * Comparison * Increment and decrement by 1
How to run
- To run the sanity check
$ gcc -c intal_sanity_check.c $ gcc -Wall intal.c intal_sanity_check.o -lm -lrt -o intal.out $ ./intal.out - Run a client file
$ gcc -c client.c $ gcc -Wall intal.c client.o -lm -lrt -o intal.out $ ./intal.out - Test for memory leaks with valgrind
$ valgrind --tool=memcheck ./intal.out
Owner
- Name: Aveek Saha
- Login: Aveek-Saha
- Kind: user
- Location: Boston, MA
- Company: @akamai
- Website: home.aveek.io
- Repositories: 66
- Profile: https://github.com/Aveek-Saha
Cloud Computing, Machine Learning and Full Stack. SDE co-op @akamai. MSCS student @northeastern. Previously at @HewlettPackard, @altimetrik & @ IIT Kgp.
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: about 1 year ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0