hicder / uint128_t

C++ unsigned 128 bit integer type

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uint128_t

An unsigned 128 bit integer type for C++

Copyright (c) 2013, 2014, 2016 Jason Lee @ calccrypto at gmail.com

Please see LICENSE file for license.

Build Status

With much help from Auston Sterling

Thanks to Stefan Deigmüller for finding a bug in operator*.

Thanks to François Dessenne for convincing me to do a general rewrite of this class.

This is simple implementation of an unsigned 128 bit integer type in C++. It's meant to be used like a standard uintX_t, except with a larger bit size than those provided by C/C++.

Be careful when initializing a uint128_t value. -1 does not create the value 2128 - 1. Rather, it uses 264 - 1, or whatever the built-in max unsigned value is.

About

C++ unsigned 128 bit integer type

License:MIT License


Languages

Language:C++ 99.0%Language:Makefile 1.0%