Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Error in 128-bit definition.
We want to multiply two 128-bit numbers and keep a 256-bit register. but we get error in defining 128 bit variable


What I have tried:

uint128 *value1;
value1 = (uint128 *)malloc(8 * sizeof(uint128));
value1 = 0x7FE007FE007FE007FE007FE007FE0071;
Posted
Updated 22-May-19 2:06am

1 solution

uint128_t does not name a type | SO[^] scheds some lights on your issue.

You could try to use some C++ big integer library[^], or even develop your own.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900