Ethereal-dev: Re: [Ethereal-dev] guint128

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <gharris@xxxxxxxxx>
Date: Sat, 08 Jan 2005 12:13:32 -0800
Stefano Pettini wrote:

I need a guint128, but I can't find it. :-)

Can you find a C compiler that natively supports 128-bit integral data types? If not, that might be why you can't find guint128. :-)

You'd have to write your own code, or find code, to do whatever's necessary to support integral data types bigger than 64 bits. It might be useful to add bignum support to Ethereal, to handle, for example, ASN.1 integral values, which are not only not necessarily limited to 32 bits, or 64 bits, they're not necessarily limited to 128 bits, either; GNU MP:

	http://www.swox.com/gmp/

might be reasonable, although they do note that it *is* sensitive to compiler bugs (and that one of the more problematic compilers is, err, umm, the C compiler whose name begins with the same three-letter acronym as the one with which the library's name begins... :-)).

Here's a page for another bignum library, with links to other bignum libraries:

	http://thayer.dartmouth.edu/~sting/sw/imath/