Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
literature/ | 12-May-2024 | - | 1,757 | 1,129 | ||
README.txt | D | 12-May-2024 | 3.6 KiB | 90 | 65 | |
basearith.c | D | 12-May-2024 | 16.6 KiB | 656 | 387 | |
basearith.h | D | 12-May-2024 | 6.9 KiB | 219 | 109 | |
bits.h | D | 12-May-2024 | 4.3 KiB | 189 | 113 | |
constants.c | D | 12-May-2024 | 5.4 KiB | 130 | 73 | |
constants.h | D | 12-May-2024 | 3.4 KiB | 90 | 40 | |
context.c | D | 12-May-2024 | 5.9 KiB | 287 | 217 | |
convolute.c | D | 12-May-2024 | 4.4 KiB | 172 | 122 | |
convolute.h | D | 12-May-2024 | 1.8 KiB | 50 | 9 | |
crt.c | D | 12-May-2024 | 4.6 KiB | 181 | 85 | |
crt.h | D | 12-May-2024 | 1.7 KiB | 47 | 7 | |
difradix2.c | D | 12-May-2024 | 4.4 KiB | 174 | 89 | |
difradix2.h | D | 12-May-2024 | 1.7 KiB | 48 | 8 | |
fnt.c | D | 12-May-2024 | 2.3 KiB | 80 | 35 | |
fnt.h | D | 12-May-2024 | 1.7 KiB | 48 | 8 | |
fourstep.c | D | 12-May-2024 | 6.4 KiB | 260 | 162 | |
fourstep.h | D | 12-May-2024 | 1.7 KiB | 48 | 8 | |
io.c | D | 12-May-2024 | 42.8 KiB | 1,599 | 1,129 | |
io.h | D | 12-May-2024 | 1.9 KiB | 63 | 24 | |
mpalloc.c | D | 12-May-2024 | 9.2 KiB | 357 | 206 | |
mpalloc.h | D | 12-May-2024 | 2 KiB | 54 | 12 | |
mpdecimal.c | D | 12-May-2024 | 233 KiB | 8,659 | 6,387 | |
mpdecimal.h | D | 12-May-2024 | 40.2 KiB | 834 | 607 | |
numbertheory.c | D | 12-May-2024 | 3.5 KiB | 133 | 70 | |
numbertheory.h | D | 12-May-2024 | 2.4 KiB | 77 | 32 | |
sixstep.c | D | 12-May-2024 | 5.7 KiB | 215 | 138 | |
sixstep.h | D | 12-May-2024 | 1.7 KiB | 48 | 8 | |
transpose.c | D | 12-May-2024 | 7.3 KiB | 277 | 186 | |
transpose.h | D | 12-May-2024 | 2 KiB | 62 | 17 | |
typearith.h | D | 12-May-2024 | 16.9 KiB | 669 | 447 | |
umodarith.h | D | 12-May-2024 | 15.6 KiB | 649 | 415 | |
vccompat.h | D | 12-May-2024 | 1.9 KiB | 57 | 23 | |
vcdiv64.asm | D | 12-May-2024 | 1.6 KiB | 47 | 44 |
README.txt
1 2 3libmpdec 4======== 5 6libmpdec is a fast C/C++ library for correctly-rounded arbitrary precision 7decimal floating point arithmetic. It is a complete implementation of 8Mike Cowlishaw/IBM's General Decimal Arithmetic Specification. 9 10 11Files required for the Python _decimal module 12============================================= 13 14 Core files for small and medium precision arithmetic 15 ---------------------------------------------------- 16 17 basearith.{c,h} -> Core arithmetic in base 10**9 or 10**19. 18 bits.h -> Portable detection of least/most significant one-bit. 19 constants.{c,h} -> Constants that are used in multiple files. 20 context.c -> Context functions. 21 io.{c,h} -> Conversions between mpd_t and ASCII strings, 22 mpd_t formatting (allows UTF-8 fill character). 23 mpalloc.{c,h} -> Allocation handlers with overflow detection 24 and functions for switching between static 25 and dynamic mpd_t. 26 mpdecimal.{c,h} -> All (quiet) functions of the specification. 27 typearith.h -> Fast primitives for double word multiplication, 28 division etc. 29 30 Visual Studio only: 31 ~~~~~~~~~~~~~~~~~~~ 32 vccompat.h -> snprintf <==> sprintf_s and similar things. 33 vcdiv64.asm -> Double word division used in typearith.h. VS 2008 does 34 not allow inline asm for x64. Also, it does not provide 35 an intrinsic for double word division. 36 37 Files for bignum arithmetic: 38 ---------------------------- 39 40 The following files implement the Fast Number Theoretic Transform 41 used for multiplying coefficients with more than 1024 words (see 42 mpdecimal.c: _mpd_fntmul()). 43 44 umodarith.h -> Fast low level routines for unsigned modular arithmetic. 45 numbertheory.{c,h} -> Routines for setting up the Number Theoretic Transform. 46 difradix2.{c,h} -> Decimation in frequency transform, used as the 47 "base case" by the following three files: 48 49 fnt.{c,h} -> Transform arrays up to 4096 words. 50 sixstep.{c,h} -> Transform larger arrays of length 2**n. 51 fourstep.{c,h} -> Transform larger arrays of length 3 * 2**n. 52 53 convolute.{c,h} -> Fast convolution using one of the three transform 54 functions. 55 transpose.{c,h} -> Transpositions needed for the sixstep algorithm. 56 crt.{c,h} -> Chinese Remainder Theorem: use information from three 57 transforms modulo three different primes to get the 58 final result. 59 60 61Pointers to literature, proofs and more 62======================================= 63 64 literature/ 65 ----------- 66 67 REFERENCES.txt -> List of relevant papers. 68 bignum.txt -> Explanation of the Fast Number Theoretic Transform (FNT). 69 fnt.py -> Verify constants used in the FNT; Python demo for the 70 O(N**2) discrete transform. 71 72 matrix-transform.txt -> Proof for the Matrix Fourier Transform used in 73 fourstep.c. 74 six-step.txt -> Show that the algorithm used in sixstep.c is 75 a variant of the Matrix Fourier Transform. 76 mulmod-64.txt -> Proof for the mulmod64 algorithm from 77 umodarith.h. 78 mulmod-ppro.txt -> Proof for the x87 FPU modular multiplication 79 from umodarith.h. 80 umodarith.lisp -> ACL2 proofs for many functions from umodarith.h. 81 82 83Library Author 84============== 85 86 Stefan Krah <skrah@bytereef.org> 87 88 89 90