Skip to content

Tew1s/BigInt_deque

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

BigInt_deque

Lab2 unsigned BigInteger class

This class contains one field deque. Each element of deque represented as 32 bits. Every hex or binary number splited by 32 bits and writes into one field deque. To create class use: BigInt number; .

To set a num use:

  • number.setHex(str)
  • number.setBIn(str)

To get num use:

  • number.getHex(str)
  • number.getBIn(str)

There are bitwise operations overrided for this datastructure:

  • INV (~)
  • OR (|)
  • XOR (^)
  • AND (&)
  • Shift Left (<<)
  • Shift Right (>>)

There are arifmetical operations overrided for this datastructure:

  • Add (+)
  • Subtitude (-)
  • Multiplication (*)
  • Module (%)

About

BigInteger for containing Hex and Bin numbers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages