Skip to content

About

my implementation of int128_t that doesnt break on MSVC and 32-bit systems cause cstdint goes up to 64bit

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

portable-int128-cpp

my implementation of int128_t that doesnt break on MSVC and 32-bit systems cause cstdint goes up to 64bit

test

#include <cstdio>
#include "int128_portable.h"

int main() {
    // Define a big ass 128-bit unsigned int 
    uint128_t big_num = 12345678901234567890ULL;
    big_num *= 2; // Math works 

    // Print it safely using printf
    printf("My huge number is: %s\n", uint128_to_string(big_num).c_str());

    return 0;
}

About

my implementation of int128_t that doesnt break on MSVC and 32-bit systems cause cstdint goes up to 64bit

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages