I’m creating a kernel in C++ / CUDA in which I need to sum two 128bit numbers represented as follows: struct Int128 { unsigned int bit0_31; unsigned int bit32_63; unsigned int bit64_95; unsigned int bit96_127; }; Int128 sum(Int128 a, Int128 b) { …? } What is the most efficient C++ way to achieve this? Thanks. ..

#### Category : 128-bit

I started to try and implement new data types, specifically floating-point values, using C. I came up with this sort of way on implementing binary128 using longer_int which I haven’t fully understood. The way how I started was to implement it via copying the code and modifying it. However, the code is C++, and C ..

I was trying to create a library that does operations on 128bit or 256bit integers in C++. I don’t want to use the bignum libraries available. I was thinking if it is possible to use 4 blocks of 32 bit integers or 8 blocks of 32 bit integers to define a 128bit or 256 bit ..

I try to measure probabilities in the order of 1e-25 or even lower. I run a cpp code which is basically an ODE solver numerically (with simple Euler steps). I have long long ints for storing the cell numbers (every step I roll a dice and I update the cell numbers using a 64 bit ..

## Recent Comments