Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Storing and ORing Large Numbers

1 view
Skip to first unread message

RL

unread,
Dec 29, 1998, 3:00:00 AM12/29/98
to
I need to read, create combinations using OR (|), and fprintf large numbers
like 8589934592 (2 to the 33rd and up to 2 to the 50th). I am using the HP
UNIX cc compiler. Obviously, unsigned long doesn't do the job. Are there
any types that support bitwise operations that can handle these sizes?
Thanks.

Ben Pfaff

unread,
Dec 29, 1998, 3:00:00 AM12/29/98
to
"RL" <rlon...@cyburban.com> writes:

Some compilers have a long long type, soon to be sanctioned in C9x.
Other than that, you can use a multiple-precision math library such as
GNU gmp at ftp://ftp.gnu.org/pub/gnu.
--
"I ran it on my DeathStation 9000 and demons flew out of my nose." --Kaz

Please: do not email me copies of your posts to comp.lang.c
do not ask me C questions via email; post them instead

0 new messages