NUTS - Numerical Tools - is a library of fixed size numbers written for the 64-bit
Free Pascal compiler (version 3.0.0 or higher).
Currently the library contains only 128-bit floating-point numbers with the basic operations
QAdd, QSub, QMul, QDiv, QRem, QSqrt, and QFMA.
There are no transcendental functions yet.
Does this library follow some "754" standard? Clearly, no. There are no so-called "signaling
NaNs" (all NaNs are regarded as quiet NaNs).
Any other difference (except the number of implemented functions) with the "754-2008" standard would
be a bug since it would not be intentional.
The current version is an alpha version. Many things can still be modified. There is no
documentation yet but the code is commented and there is a
Lazarus demo project: nuts.Demo.Float128s.
• NUTS was tested with x86_64 processors only.
• NUTS cannot run on big endian systems (adapting the Pascal code should not be too difficult
but I have no big endian machine in order to check the code).
• Though it would not be intentional, it is possible that NUTS does not work with an other OS
than Linux (I have no other OS).
Here are examples of use of the project nuts.Demo.Float128s for Lazarus.
v0.1.3 - alpha (March 11, 2022)
-
File demos/nuts.demos.float128s.main.pas
- Modified the Demo340 method (QDiv).
-
File units/nuts.float128s.pas
- Fixed a very stupid bug in the QEqual() and QEqualAbs functions.
- Minor internal improvements.
Previous changes
The NUTS Library is free software; you can redistribute it and/or modify it under the terms of the
3-Clause BSD License (this license has also been called the "New BSD License" or "Modified BSD
License"):
Copyright (C) 2022, Marcel Martin
Redistribution and use in source and binary forms, with or without modification, are permitted provided
that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
nuts-0.1.3.7z |
116 kB |
Pascal source for the 64-bit Free Pascal compiler (3.0.0 or higher) |
|
|