summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/perl/cpan/bignum
diff options
context:
space:
mode:
authorafresh1 <afresh1@openbsd.org>2019-02-13 21:15:00 +0000
committerafresh1 <afresh1@openbsd.org>2019-02-13 21:15:00 +0000
commit9f11ffb7133c203312a01e4b986886bc88c7d74b (patch)
tree6618511204c614b20256e4ef9dea39a7b311d638 /gnu/usr.bin/perl/cpan/bignum
parentImport perl-5.28.1 (diff)
downloadwireguard-openbsd-9f11ffb7133c203312a01e4b986886bc88c7d74b.tar.xz
wireguard-openbsd-9f11ffb7133c203312a01e4b986886bc88c7d74b.zip
Fix merge issues, remove excess files - match perl-5.28.1 dist
looking good sthen@, Great! bluhm@
Diffstat (limited to 'gnu/usr.bin/perl/cpan/bignum')
-rw-r--r--gnu/usr.bin/perl/cpan/bignum/lib/Math/BigFloat/Trace.pm8
-rw-r--r--gnu/usr.bin/perl/cpan/bignum/lib/Math/BigInt/Trace.pm8
-rw-r--r--gnu/usr.bin/perl/cpan/bignum/lib/bigint.pm43
-rw-r--r--gnu/usr.bin/perl/cpan/bignum/lib/bignum.pm60
-rw-r--r--gnu/usr.bin/perl/cpan/bignum/lib/bigrat.pm38
-rwxr-xr-xgnu/usr.bin/perl/cpan/bignum/t/bigexp.t1
-rw-r--r--gnu/usr.bin/perl/cpan/bignum/t/infnan.inc1
-rwxr-xr-xgnu/usr.bin/perl/cpan/bignum/t/scope_f.t1
8 files changed, 131 insertions, 29 deletions
diff --git a/gnu/usr.bin/perl/cpan/bignum/lib/Math/BigFloat/Trace.pm b/gnu/usr.bin/perl/cpan/bignum/lib/Math/BigFloat/Trace.pm
index 634d9670d46..04dec98bc5e 100644
--- a/gnu/usr.bin/perl/cpan/bignum/lib/Math/BigFloat/Trace.pm
+++ b/gnu/usr.bin/perl/cpan/bignum/lib/Math/BigFloat/Trace.pm
@@ -2,20 +2,20 @@
package Math::BigFloat::Trace;
-require 5.006;
+require 5.010;
use strict;
use warnings;
use Exporter;
use Math::BigFloat;
-our ($PACKAGE, @EXPORT_OK, $accuracy, $precision, $round_mode, $div_scale);
+our ($accuracy, $precision, $round_mode, $div_scale);
our @ISA = qw(Exporter Math::BigFloat);
-our $VERSION = '0.42_01';
+our $VERSION = '0.49';
-use overload; # inherit overload from BigFloat
+use overload; # inherit overload from Math::BigFloat
# Globals
$accuracy = $precision = undef;
diff --git a/gnu/usr.bin/perl/cpan/bignum/lib/Math/BigInt/Trace.pm b/gnu/usr.bin/perl/cpan/bignum/lib/Math/BigInt/Trace.pm
index 4e474976e54..5f83c79210f 100644
--- a/gnu/usr.bin/perl/cpan/bignum/lib/Math/BigInt/Trace.pm
+++ b/gnu/usr.bin/perl/cpan/bignum/lib/Math/BigInt/Trace.pm
@@ -2,20 +2,20 @@
package Math::BigInt::Trace;
-require 5.006;
+require 5.010;
use strict;
use warnings;
use Exporter;
use Math::BigInt;
-our ($PACKAGE, @EXPORT_OK, $accuracy, $precision, $round_mode, $div_scale);
+our ($accuracy, $precision, $round_mode, $div_scale);
our @ISA = qw(Exporter Math::BigInt);
-our $VERSION = '0.42_01';
+our $VERSION = '0.49';
-use overload; # inherit overload from BigInt
+use overload; # inherit overload from Math::BigInt
# Globals
$accuracy = $precision = undef;
diff --git a/gnu/usr.bin/perl/cpan/bignum/lib/bigint.pm b/gnu/usr.bin/perl/cpan/bignum/lib/bigint.pm
index bc1ebe39724..92aeae8b079 100644
--- a/gnu/usr.bin/perl/cpan/bignum/lib/bigint.pm
+++ b/gnu/usr.bin/perl/cpan/bignum/lib/bigint.pm
@@ -1,10 +1,10 @@
package bigint;
-use 5.006;
+use 5.010;
use strict;
use warnings;
-our $VERSION = '0.42_01';
+our $VERSION = '0.49';
use Exporter;
our @ISA = qw( Exporter );
@@ -361,8 +361,8 @@ sub import {
}
}
-sub inf () { Math::BigInt::binf(); }
-sub NaN () { Math::BigInt::bnan(); }
+sub inf () { Math::BigInt->binf(); }
+sub NaN () { Math::BigInt->bnan(); }
sub PI () { Math::BigInt->new(3); }
sub e () { Math::BigInt->new(2); }
@@ -775,6 +775,24 @@ to compare them to the results under -Mbignum or -Mbigrat:
perl -Mbigint=a,65 -le 'print 2 ** 0.2'
perl -Mbignum=a,65,l,GMP -le 'print 7 ** 7777'
+=head1 BUGS
+
+For information about bugs and how to report them, see the BUGS section in the
+documentation available with the perldoc command.
+
+ perldoc bignum
+
+=head1 SUPPORT
+
+You can find documentation for this module with the perldoc command.
+
+ perldoc bigint
+
+For more information, see the SUPPORT section in the documentation available
+with the perldoc command.
+
+ perldoc bignum
+
=head1 LICENSE
This program is free software; you may redistribute it and/or modify it under
@@ -782,14 +800,23 @@ the same terms as Perl itself.
=head1 SEE ALSO
-Especially L<bigrat> as in C<perl -Mbigrat -le 'print 1/3+1/4'> and
-L<bignum> as in C<perl -Mbignum -le 'print sqrt(2)'>.
+L<bignum> and L<bigrat>.
-L<Math::BigInt>, L<Math::BigRat> and L<Math::Big> as well
-as L<Math::BigInt::Pari> and L<Math::BigInt::GMP>.
+L<Math::BigInt>, L<Math::BigFloat>, L<Math::BigRat> and L<Math::Big> as well as
+L<Math::BigInt::FastCalc>, L<Math::BigInt::Pari> and L<Math::BigInt::GMP>.
=head1 AUTHORS
+=over 4
+
+=item *
+
(C) by Tels L<http://bloodgate.com/> in early 2002 - 2007.
+=item *
+
+Maintained by Peter John Acklam E<lt>pjacklam@gmail.com<gt>, 2014-.
+
+=back
+
=cut
diff --git a/gnu/usr.bin/perl/cpan/bignum/lib/bignum.pm b/gnu/usr.bin/perl/cpan/bignum/lib/bignum.pm
index 394b1473554..e052aabe293 100644
--- a/gnu/usr.bin/perl/cpan/bignum/lib/bignum.pm
+++ b/gnu/usr.bin/perl/cpan/bignum/lib/bignum.pm
@@ -1,10 +1,10 @@
package bignum;
-use 5.006;
+use 5.010;
use strict;
use warnings;
-our $VERSION = '0.42_01';
+our $VERSION = '0.49';
use Exporter;
our @ISA = qw( bigint );
@@ -662,6 +662,46 @@ Some cool command line examples to impress the Python crowd ;)
perl -Mbignum=a,65 -le 'print 2 ** 0.2'
perl -Mbignum=a,65,l,GMP -le 'print 7 ** 7777'
+=head1 BUGS
+
+Please report any bugs or feature requests to
+C<bug-math-bigint at rt.cpan.org>, or through the web interface at
+L<https://rt.cpan.org/Ticket/Create.html?Queue=bignum> (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 bignum
+
+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=bignum>
+
+=item * AnnoCPAN: Annotated CPAN documentation
+
+L<http://annocpan.org/dist/bignum>
+
+=item * CPAN Ratings
+
+L<http://cpanratings.perl.org/dist/bignum>
+
+=item * Search CPAN
+
+L<http://search.cpan.org/dist/bignum/>
+
+=item * CPAN Testers Matrix
+
+L<http://matrix.cpantesters.org/?dist=bignum>
+
+=back
+
=head1 LICENSE
This program is free software; you may redistribute it and/or modify it under
@@ -669,13 +709,23 @@ the same terms as Perl itself.
=head1 SEE ALSO
-Especially L<bigrat> as in C<perl -Mbigrat -le 'print 1/3+1/4'>.
+L<bigint> and L<bigrat>.
-L<Math::BigFloat>, L<Math::BigInt>, L<Math::BigRat> and L<Math::Big> as well
-as L<Math::BigInt::Pari> and L<Math::BigInt::GMP>.
+L<Math::BigInt>, L<Math::BigFloat>, L<Math::BigRat> and L<Math::Big> as well as
+L<Math::BigInt::FastCalc>, L<Math::BigInt::Pari> and L<Math::BigInt::GMP>.
=head1 AUTHORS
+=over 4
+
+=item *
+
(C) by Tels L<http://bloodgate.com/> in early 2002 - 2007.
+=item *
+
+Maintained by Peter John Acklam E<lt>pjacklam@gmail.com<gt>, 2014-.
+
+=back
+
=cut
diff --git a/gnu/usr.bin/perl/cpan/bignum/lib/bigrat.pm b/gnu/usr.bin/perl/cpan/bignum/lib/bigrat.pm
index 260973b8427..45682f7bbe9 100644
--- a/gnu/usr.bin/perl/cpan/bignum/lib/bigrat.pm
+++ b/gnu/usr.bin/perl/cpan/bignum/lib/bigrat.pm
@@ -1,10 +1,10 @@
package bigrat;
-use 5.006;
+use 5.010;
use strict;
use warnings;
-our $VERSION = '0.42_01';
+our $VERSION = '0.49';
use Exporter;
our @ISA = qw( bigint );
@@ -548,6 +548,24 @@ Compare this to:
perl -Mbigrat -le 'print 12->is_odd()';
perl -Mbignum=l,GMP -le 'print 7 ** 7777'
+=head1 BUGS
+
+For information about bugs and how to report them, see the BUGS section in the
+documentation available with the perldoc command.
+
+ perldoc bignum
+
+=head1 SUPPORT
+
+You can find documentation for this module with the perldoc command.
+
+ perldoc bigrat
+
+For more information, see the SUPPORT section in the documentation available
+with the perldoc command.
+
+ perldoc bignum
+
=head1 LICENSE
This program is free software; you may redistribute it and/or modify it under
@@ -555,13 +573,23 @@ the same terms as Perl itself.
=head1 SEE ALSO
-Especially L<bignum>.
+L<bignum> and L<bigint>.
-L<Math::BigFloat>, L<Math::BigInt>, L<Math::BigRat> and L<Math::Big> as well
-as L<Math::BigInt::Pari> and L<Math::BigInt::GMP>.
+L<Math::BigInt>, L<Math::BigFloat>, L<Math::BigRat> and L<Math::Big> as well as
+L<Math::BigInt::FastCalc>, L<Math::BigInt::Pari> and L<Math::BigInt::GMP>.
=head1 AUTHORS
+=over 4
+
+=item *
+
(C) by Tels L<http://bloodgate.com/> in early 2002 - 2007.
+=item *
+
+Peter John Acklam E<lt>pjacklam@gmail.com<gt>, 2014-.
+
+=back
+
=cut
diff --git a/gnu/usr.bin/perl/cpan/bignum/t/bigexp.t b/gnu/usr.bin/perl/cpan/bignum/t/bigexp.t
index 03355a59461..61d39b2b82f 100755
--- a/gnu/usr.bin/perl/cpan/bignum/t/bigexp.t
+++ b/gnu/usr.bin/perl/cpan/bignum/t/bigexp.t
@@ -12,7 +12,6 @@ use bignum;
my $ln_ev = -7 / (10 ** 17);
my $ev = exp($ln_ev);
-
is(sprintf('%0.5f', $ev), '1.00000', '($ev) is approx. 1');
is(sprintf('%0.5f', 1 - $ev), '0.00000', '(1-$ev) is approx. 0');
is(sprintf('%0.5f', 1 - "$ev"), '0.00000', '(1-"$ev") is approx. 0');
diff --git a/gnu/usr.bin/perl/cpan/bignum/t/infnan.inc b/gnu/usr.bin/perl/cpan/bignum/t/infnan.inc
index 695b9135dd6..5ecc7b5936b 100644
--- a/gnu/usr.bin/perl/cpan/bignum/t/infnan.inc
+++ b/gnu/usr.bin/perl/cpan/bignum/t/infnan.inc
@@ -75,7 +75,6 @@ is($x->bstr(), 'NaN', qq|$x = inf * NaN; $x->bstr() = 'NaN'|);
for my $nan (qw/ nan naN nAn nAN Nan NaN NAn NAN /) {
my $x = 1 + $nan;
- print ref($x), "<<<\n";
is($x->bstr(), "NaN", qq|\$x = 1 + "$nan"; \$x->bstr() = "NaN"|);
isa_ok($x, "Math::BigInt");
}
diff --git a/gnu/usr.bin/perl/cpan/bignum/t/scope_f.t b/gnu/usr.bin/perl/cpan/bignum/t/scope_f.t
index 23ffc3a665b..e932ea2b9f7 100755
--- a/gnu/usr.bin/perl/cpan/bignum/t/scope_f.t
+++ b/gnu/usr.bin/perl/cpan/bignum/t/scope_f.t
@@ -32,4 +32,3 @@ SKIP: {
isnt (ref(hex(9)), 'Math::BigInt', 'hex is not overloaded');
isnt (ref(oct(07)), 'Math::BigInt', 'oct is not overloaded');
}
-