This is the home page for LDBLLIB.

About LDBLLIB

LDBLLIB is a C++ library for working with 10-bytes floating-point numbers in Microsoft Visual C++. Microsoft Visual C++ treats type 'long double' as 'double', so sizeof(long double) == 8 there. I don't think this is good. Because when I want to use double, I write "double". I suppose a programmer must decide by himself what real type to use. So I've written the "LDBLLIB" library. The library introduces class "long_double" which represents real type occupying 10 bytes. The "long_double" class and related functions have been implemented with the inline-assembler. The library defines arithmetic operations with objects of type long_double, math functions (atanl, sqrtl, sinl, etc.), limits (std::numeric_limits), conversion functions (strtold, gcvtl, etc.), and stream writing/reading operators.

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Getting LDBLLIB

You can download my source code using the following link:
http://sourceforge.net/projects/ldbllib/ldbllib-src.zip
or via SVN:
http://ldbllib.svn.sourceforge.net/svnroot/ldbllib

You can also download ready-to-run samples using by the following link:
http://sourceforge.net/projects/ldbllib/ldbllib-samples.zip

Screenshotes

1000! can be calculated with the "LDBLLIB" library.

Calculation pi and performance test.

All unit-tests are included.

Development

LDBLLIB is maintained and distributed via a Sourceforge project.

Copyright (c) 2009 Vitaly Baranov; baranovve@mail.ru