OS4 DepotLogo by McFly 
(anonymous IP: 34.236.190.216,1348) 
 HomeRecentStatsSearchSubmitUploadsMirrorsContactInfoDisclaimerConfigAdmin
 Menu

 Features
   Crashlogs
   Bug tracker
   Locale browser
 

 Categories

   o Audio (330)
   o Datatype (47)
   o Demo (186)
   o Development (540)
   o Document (21)
   o Driver (89)
   o Emulation (142)
   o Game (872)
   o Graphics (468)
   o Library (102)
   o Network (205)
   o Office (56)
   o Utility (825)
   o Video (61)

Total files: 3944

Full index file
Recent index file

 Links

  Amigans.net
  OpenAmiga
  Aminet
  IntuitionBase


Support the site


 Readme for:  Development » Library » Math » libtommath.lha

Libtommath

Description: libtommath - Multiple precision arithmetic
Download: libtommath.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 1Mb
Version: 0.40
Date: 15 May 2007
Author: Tom St. Denis
Submitter: Thematic
Category: development/library/math
License: Public domain
Distribute: yes
Min OS Version: 4.0
FileID: 2768
 
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 115  (Current version)
115  (Accumulated)
Votes: 1 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
What is LibTomMath?

LibTomMath is a free and open source multiple precision integer library written
entirely in portable ISO C. By portable it is meant that the library does not
contain any code that is computer platform dependent or otherwise problematic
to use on any given platform.
    The library has been successfully tested under numerous operating systems
including Unix, MacOS, Windows, Linux, PalmOS and on standalone hardware
such as the Gameboy Advance. The library is designed to contain enough
functionality to be able to develop applications such as public key
cryptosystems and still maintain a relatively small footprint.

Goals of LibTomMath

Libraries which obtain the most eciency are rarely written in a high level
programming language such as C. However, even though this library is written
entirely in ISO C, considerable care has been taken to optimize the algorithm
implementations within the library. Specically the code has been written to
work well with the GNU C Compiler (GCC ) on both x86 and ARM processors.
Wherever possible, highly efficient algorithms, such as Karatsuba
multiplication, sliding window exponentiation and Montgomery reduction have been
provided
to make the library more efficient.
    Even with the nearly optimal and specialized algorithms that have been in-
cluded the Application Programing Interface (API ) has been kept as simple
as possible. Often generic place holder routines will make use of specialized
algorithms automatically without the developers specific attention. One such
example is the generic multiplication algorithm mp_mul() which will automat-
ically use ToomCook, Karatsuba, Comba or baseline multiplication based on
the magnitude of the inputs and the conguration of the library.
    Making LibTomMath as efficient as possible is not the only goal of the
LibTomMath project. Ideally the library should be source compatible with
another popular library which makes it more attractive for developers to use.
In this case the MPI library was used as a API template for all the basic func-
tions. MPI was chosen because it is another library that is in the same niche
as LibTomMath. Even though LibTomMath uses MPI as the template for the
function names and argument passing conventions, it has been written from
scratch by Tom St Denis.
    The project is also meant to act as a learning tool for students, the logic
being that no easy-to-follow bignum library exists which can be used to teach
computer science students how to perform fast and reliable multiple precision
integer arithmetic. To this end the source code has been given quite a few
comments and algorithm discussion points.



Copyright © 2004-2019 by Björn Hagström All Rights Reserved