/usr/lib/x86_64-linux-gnu/perl5/5.24/Math/BigInt/GMP.pm is in libmath-bigint-gmp-perl 1.6003-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 | package Math::BigInt::GMP;
use 5.006002;
use strict;
use warnings;
use Math::BigInt::Lib 1.999801;
our @ISA = qw< Math::BigInt::Lib >;
our $VERSION = '1.6003';
use XSLoader;
XSLoader::load "Math::BigInt::GMP", $VERSION;
sub import { } # catch and throw away
sub api_version() { 2; }
###############################################################################
# Routines not present here are in GMP.xs or inherited from the parent class.
###############################################################################
# routine to test internal state for corruptions
sub _check {
my ($class, $x) = @_;
return "Undefined" unless defined $x;
return "$x is not a reference to Math::BigInt::GMP"
unless ref($x) eq 'Math::BigInt::GMP';
return 0;
}
sub STORABLE_freeze {
my ($self, $cloning) = @_;
return Math::BigInt::GMP->_str($self);
}
sub STORABLE_thaw {
my ($self, $cloning, $serialized) = @_;
Math::BigInt::GMP->_new_attach($self, $serialized);
return $self;
}
1;
__END__
=pod
=head1 NAME
Math::BigInt::GMP - Use the GMP library for Math::BigInt routines
=head1 SYNOPSIS
# to use it with Math::BigInt
use Math::BigInt lib => 'GMP';
# to use it with Math::BigFloat
use Math::BigFloat lib => 'GMP';
# to use it with Math::BigRat
use Math::BigRat lib => 'GMP';
=head1 DESCRIPTION
Math::BigInt::Calc inherits from Math::BigInt::Lib.
Provides support for big integer calculations by means of the GMP c-library.
Math::BigInt::GMP now no longer uses Math::GMP, but provides it's own XS layer
to access the GMP c-library. This cuts out another (Perl sub routine) layer and
also reduces the memory footprint by not loading Math::GMP and Carp.
=head1 BUGS
Please report any bugs or feature requests to
C<bug-math-bigint-gmp at rt.cpan.org>, or through the web interface at
L<https://rt.cpan.org/Ticket/Create.html?Queue=Math-BigInt-GMP>
(requires login).
We will be notified, and then you'll automatically be notified of progress on
your bug as I make changes.
=head1 SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Math::BigInt::GMP
You can also look for information at:
=over 4
=item * RT: CPAN's request tracker
L<https://rt.cpan.org/Public/Dist/Display.html?Name=Math-BigInt-GMP>
=item * AnnoCPAN: Annotated CPAN documentation
L<http://annocpan.org/dist/Math-BigInt-GMP>
=item * CPAN Ratings
L<http://cpanratings.perl.org/dist/Math-BigInt-GMP>
=item * Search CPAN
L<http://search.cpan.org/dist/Math-BigInt-GMP/>
=item * CPAN Testers Matrix
L<http://matrix.cpantesters.org/?dist=Math-BigInt-GMP>
=item * The Bignum mailing list
=over 4
=item * Post to mailing list
C<bignum at lists.scsys.co.uk>
=item * View mailing list
L<http://lists.scsys.co.uk/pipermail/bignum/>
=item * Subscribe/Unsubscribe
L<http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/bignum>
=back
=back
=head1 LICENSE
This program is free software; you may redistribute it and/or modify it under
the same terms as Perl itself.
=head1 AUTHOR
Tels E<lt>http://bloodgate.com/E<gt> in 2001-2007.
Thanx to Chip Turner for providing Math::GMP, which was inspiring my work.
=head1 SEE ALSO
L<Math::BigInt::Lib> for a description of the API.
Alternative libraries L<Math::BigInt::Calc>, L<Math::BigInt::FastCalc>, and
L<Math::BigInt::Pari>.
Some of the modules that use these libraries L<Math::BigInt>,
L<Math::BigFloat>, and L<Math::BigRat>.
=cut
|