Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ This repo requires the installation of the Golang compiler on the system in orde
presubmit script and the provided Go FFI and test. To install Go under Ubuntu, run the following:

``sudo apt install golang-go``

For 32-bit builds to work, boost library is required.
8 changes: 8 additions & 0 deletions src/starkware/algebra/big_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@
#include "starkware/utils/error_handling.h"
#include "starkware/utils/prng.h"

/*
Support for 32-bit builds, where __uint128_t isn't defined.
*/
#ifndef __SIZEOF_INT128__
#include <boost/multiprecision/cpp_int.hpp>
typedef boost::multiprecision::uint128_t __uint128_t;
#endif

namespace starkware {

static constexpr inline __uint128_t Umul128(uint64_t x, uint64_t y) {
Expand Down