Consider the following code: Upon compilation (gcc -std=c18), I get the following warnings: The C standard section 6.4.4.1.5 and 6.4.4.1.6 say: ...
Consider the following code: Upon compilation (gcc -std=c18), I get the following warnings: The C standard section 6.4.4.1.5 and 6.4.4.1.6 say: ...
I'm getting compiler errors when I call abs() with GCC's 128 bit type. My line looks like: The error I'm getting locally is: so it's not conside ...
I'm using GCC's 128 bit integer: However, if I try to output using the stream operator I get the compiler error: Is there a way to allow this? ...
Suppose I have a UInt128 like this And now I want to extract the two UInt64s from the updated foo. If they were properties, I could do this But ...
the goal is to multiply first arg with the second and send to result to the last arg first arg = RDI / second arg = RSI goal to send result high/l ...
I want to do this with a 128 bit integer using g++ and GMP's mpz_class (or mpz_t): I can do the following, but it seems slow to first convert the _ ...
I have a BigInt 170141183460469231731687303715884105728n which is 128 bit integer, then i want to convert that integer to buffer. But as i know, node ...
In Julia 1.7.2 multiplication of 3037000691 and 3037000693 returns the negative product -9223370870501072753. The product I expected is 92233732032084 ...
How can the square root of a u128 be calculated? The resulting number can be a u128 after some rounding. f64 has a f64::sqrt function, but I dont thi ...
I am using std::bitset to represent short DNA sequences (haplotypes). For my purposes, I need to be able to convert each such sequence into a single i ...
In my c code I have to perform a series of recursive modular operations. In particular I have to perform operations like (A*B)modC, with C~2^126, and ...
gcc has the __int128 type natively. However, it’s not defined in limits.h. I’m mean there’re no such things as INT128_MAX or INT128_MIN… And gcc is ...
I'm confused with the usage of 128-bit integer. Please look at the test code: I expect the test_data_h to be 0x00000000FFFFFFFF, but the result is ...
Rust has 128-bit integers, these are denoted with the data type i128 (and u128 for unsigned ints): How does Rust make these i128 values work on a 6 ...
I am programming a Node JS client that's querying a third-party server for information. Part of the message that I receive back from the third party s ...
Apologies for the confusing title. I'm not sure how to better describe what I'm trying to accomplish. I'm essentially trying to do the reverse of gett ...
I'm compiling my code with gcc, with the -Wall -Wextra -Wpedantic switches and a non-extension standard set (say it's -std=c++14). But - I want to hav ...
I have to perform (a * b) % m, but a, b, and m are 128-bit unsigned types, and overflow during multiplication is a large possibility. How can I still ...
In python one can handle very large integers (for instance uuid.uuid4().int.bit_length() gives 128), but the largest int datastructure the C-API docum ...
I have a huge number of 128-bit unsigned integers that need to be sorted for analysis (around a trillion of them!). The research I have done on 128-b ...