Overview

FNX (to pronounce like "phoenix") is an attempt to revive my old library NX (2003-2011).

FNX is a library of multiprecision numbers (currently, only big integers) written for Free Pascal 3.0.0 or higher and Linux. The assembler code that can be enabled with a compiler directive, is for x86-64 processors only.

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 are two Lazarus demo projects: fnx.Demo.BigInts and fnx.Demo.MultithreadApp.

A last thing, I do not know whether FNX can work with an other OS than Linux.



Examples of use

Here are examples of use of the project fnx.Demo.BigInts for Lazarus. For all these examples, the running times were obtained with an Intel i7-2600 processor (3.4 GHz).



Changes
v0.9.5 - alpha  (March 29, 2020)
  • Main change: FNX is now licensed according to the "3-Clause BSD" License.
  • Suppressed unit
    • fnx.IntUtils.LowLevel
  • Unit fnx.Demo.BigInts.Main.pas
    • Method Towers of Hanoi added.
  • Unit fnx.BigInts.Stacks.pas
    • GetValues method added.
 Previous changes



License

The FNX 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) 2020, 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.



Download
  fnx-0.9.5.7z    225 kB   Pascal source for Free Pascal 3.0.0 or higher