https://github.com/aveek-saha/intal

C library to perform calculations on integers of arbitrary length

https://github.com/aveek-saha/intal

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

arithmetic-computation c c-library karatsuba large-integers
Last synced: 9 months ago · JSON representation

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
arithmetic-computation c c-library karatsuba large-integers
Created over 6 years ago · Last pushed over 6 years ago
Metadata Files
Readme License

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

  1. 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
  2. Run a client file $ gcc -c client.c $ gcc -Wall intal.c client.o -lm -lrt -o intal.out $ ./intal.out
  3. 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

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
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels