Skip to content

felix-lang/uint256_t

 
 

Repository files navigation

uint256_t

An unsigned 256 bit integer type for C++

Copyright (c) 2013 - 2017 Jason Lee @ calccrypto at gmail.com

Please see LICENSE file for license.

Build Status

With much help from Auston Sterling

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

This is simple implementation of an unsigned 256 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++.

uint256_t requires uint128_t, which is included.

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

About

C++ unsigned 256 bit integer type

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.5%
  • Makefile 2.0%
  • C 0.5%