SkillAgentSearch skills...

Libinteger

big num support at binary level

Install / Use

/learn @Enter-tainer/Libinteger
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

libinteger

Usage

#include <iostream>
#include "i.h"
#include "u.h"

using namespace std;
using i1024 = mgt::i<1024>;
using u1024 = mgt::u<1024>;
int main() {
  i1024 a, b;
  cin >> a >> b;
  cout << a + b << endl;

  return 0;
}

Performance(With -O2)

ms / op: test on i1024
plus:0.003
minus:0.005
multiply:0.16
division:0
to_string:2.01

====================================================

ms / op: test on u1024
plus:0.002
minus:0.004
multiply:0.18
division:0
to_string:2.02

See bench.cpp for details

View on GitHub
GitHub Stars5
CategoryCustomer
Updated5y ago
Forks2

Languages

C++

Security Score

55/100

Audited on Feb 19, 2021

No findings