Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can you change the number of bits in int type 1

Status
Not open for further replies.

Maulkin

Programmer
Apr 8, 2002
19
AU
i'm writing a c implementation of RSA that needs to deal with large int values can i extend the number of bits assigned for int type to handle these large numbers?
 
No you cannot change the number of bits assigned to a default data type. Int can be 16/32 bits depending on the underlying platform. You will have to keep an array of integers and manipulate it.
 
If you're working on a UNIX box, most implementations have multiple precision integer library (mp). Do a man on "mp" and it should show you everything you need to know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top