Boost logo

Boost :

Subject: [boost] [xint] Fourth release, requesting preliminary review again
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2010-06-01 09:44:45

Hash: SHA1

The next, and hopefully final, iteration of the Extended Integer library
(a arbitrary-length integer math library) is now available in the
sandbox (at <>) and the
Vault (at
It incorporates almost all of the suggestions offered on this list.

The highlights of this release are:

* It's now a header-only library. It can still be compiled if you wish
(I use the compiled version for most of my testing), but that's no
longer required.

* The user-visible classes (integer, nothrow_integer, and fixed_integer)
are all now templates, with parameters for an allocator, thread-safe
operation, and "secure mode" (zeroing all memory before releasing it).

* Thread-safe operation is now the default. It's slightly slower that
way, but not much, because the library still uses a copy-on-write system
for internal functions (where it's safe because variables allocated
there can never be seen across thread boundaries). Every object is given
its own storage before it's returned to the non-library caller.

I've included my testing projects as well, for CodeLite under Linux and
Visual Studio under Windows, for convenience.

It includes a slightly older version of Ion Gaztañaga's preliminary Move
library too. I haven't tested it with the current version, but it should
work with that as well. The Move library is not used by default, and
makes only a slight difference to the speed when thread-safety is enabled.

I plan to add a few more examples, but what's there should be sufficient
to get people started.
- --
Chad Nelson
Oak Circle Software, Inc.
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


Boost list run by bdawes at, gregod at, cpdaniel at, john at