machine-factor 0.2.0

constant factorisation for machine-size integers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#include<iostream>
#include "mfactor.h"
int main(){
  __int128 x = 72057594037927931;//73786976294838206459;
  __int128 prod = 1024;
  __int128 rem = 5115;
  __int128 y = x*prod+rem;
  __int128 z = x*y;
  __int128 bigfctr = get_factor_128(z);
  uint64_t k = bigfctr;
  std::cout<<k<<std::endl;
  
}