1Math::BigInt::FastCalc(U3s)er Contributed Perl DocumentatMiaotnh::BigInt::FastCalc(3)
2
3
4

NAME

6       Math::BigInt::FastCalc - Math::BigInt::Calc with some XS for more speed
7

SYNOPSIS

9           # to use it with Math::BigInt
10           use Math::BigInt lib => 'FastCalc';
11
12           # to use it with Math::BigFloat
13           use Math::BigFloat lib => 'FastCalc';
14
15           # to use it with Math::BigRat
16           use Math::BigRat lib => 'FastCalc';
17

DESCRIPTION

19       Math::BigInt::FastCalc inherits from Math::BigInt::Calc.
20
21       Provides support for big integer calculations. Not intended to be used
22       by other modules. Other modules which sport the same functions can also
23       be used to support Math::BigInt, like Math::BigInt::GMP or
24       Math::BigInt::Pari.
25
26       In order to allow for multiple big integer libraries, Math::BigInt was
27       rewritten to use library modules for core math routines. Any module
28       which follows the same API as this can be used instead by using the
29       following:
30
31           use Math::BigInt lib => 'libname';
32
33       'libname' is either the long name ('Math::BigInt::Pari'), or only the
34       short version like 'Pari'. To use this library:
35
36           use Math::BigInt lib => 'FastCalc';
37
38       The default behaviour is to chose the best internal representation of
39       big integers, but the base length used in the internal representation
40       can be specified explicitly. Note that this must be done before
41       Math::BigInt is loaded.  For example,
42
43           use Math::BigInt::FastCalc base_len => 3;
44           use Math::BigInt lib => 'FastCalc';
45

STORAGE

47       Math::BigInt::FastCalc works exactly like Math::BigInt::Calc. Numbers
48       are stored in decimal form chopped into parts.
49

METHODS

51       The following functions are now implemented in FastCalc.xs:
52
53           _is_odd         _is_even        _is_one         _is_zero
54           _is_two         _is_ten
55           _zero           _one            _two            _ten
56           _acmp           _len
57           _inc            _dec
58           __strip_zeros   _copy
59

BUGS

61       Please report any bugs or feature requests to "bug-math-bigint-fastcalc
62       at rt.cpan.org", or through the web interface at
63       <https://rt.cpan.org/Ticket/Create.html?Queue=Math-BigInt-FastCalc>
64       (requires login). We will be notified, and then you'll automatically be
65       notified of progress on your bug as I make changes.
66

SUPPORT

68       After installing, you can find documentation for this module with the
69       perldoc command.
70
71           perldoc Math::BigInt::FastCalc
72
73       You can also look for information at:
74
75       GitHub
76           <https://github.com/pjacklam/p5-Math-BigInt-FastCalc>
77
78       RT: CPAN's request tracker
79           <https://rt.cpan.org/Dist/Display.html?Name=Math-BigInt-FastCalc>
80
81       MetaCPAN
82           <https://metacpan.org/release/Math-BigInt-FastCalc>
83
84       CPAN Testers Matrix
85           <http://matrix.cpantesters.org/?dist=Math-BigInt-FastCalc>
86
87       CPAN Ratings
88           <https://cpanratings.perl.org/dist/Math-BigInt-FastCalc>
89

LICENSE

91       This program is free software; you may redistribute it and/or modify it
92       under the same terms as Perl itself.
93

AUTHORS

95       Original math code by Mark Biggar, rewritten by Tels
96       <http://bloodgate.com/> in late 2000.
97
98       Separated from Math::BigInt and shaped API with the help of John
99       Peacock.
100
101       Fixed, sped-up and enhanced by Tels http://bloodgate.com 2001-2003.
102       Further streamlining (api_version 1 etc.) by Tels 2004-2007.
103
104       Maintained by Peter John Acklam <pjacklam@gmail.com> 2010-2021.
105

SEE ALSO

107       Math::BigInt::Lib for a description of the API.
108
109       Alternative libraries Math::BigInt::Calc, Math::BigInt::GMP, and
110       Math::BigInt::Pari.
111
112       Some of the modules that use these libraries Math::BigInt,
113       Math::BigFloat, and Math::BigRat.
114
115
116
117perl v5.34.0                      2022-01-21         Math::BigInt::FastCalc(3)
Impressum