Commit 92e20f72 authored by gregor herrmann's avatar gregor herrmann

Imported Upstream version 1.999722

parent ac988f54
......@@ -1739,6 +1739,40 @@ there are so many changes, I let this be a development release.
* Improve test descriptions in t/mbimbf.inc.
2016-04-25 v1.999719 pjacklam
* Revert the change to Math::BigFloat's blsft() and brsft() methods, which
truncated the input (and output) to integers. However, now convert the base
to an object only when the base isn't an object already. Also return NaN if
any of the three operands is a NaN.
* Change t/bigfltpm.inc to reflect the changes to blsft() and brsft(). Also,
when a method should be tested, actually test that method, not the
overloaded operator, which doesn't necessarily behave in the exact same
manner as the method. This applies to the methods binc(), bdec(), bpow(),
badd(), bsub(), bmul(), bdiv() in scalar context, brsft(), blsft(), and
bmod().
* The first output argument from objectify() is the class name, so use the
variable name $class, not $self.
2016-04-26 v1.999720 pjacklam
* Overloaded 'int' should not modify it's argument.
* Better documentation of blsft() and brsft().
2016-04-26 v1.999721 pjacklam
* Prevent Math::BigFloat methods band(), bior(), bxor(), and bnot() from
modifying unmodifiable objects.
2016-04-26 v1.999722 pjacklam
* Fix bug in bone() and binf() when used as a function. The error caused
warnings about using an unitialized variable. This fix applies to both
Math::BigInt and Math::BigFloat.
Please send us test-reports, your experiences with this and your ideas - we love
to hear about our work!
......
......@@ -40,6 +40,6 @@
}
},
"release_status" : "stable",
"version" : "1.999718",
"version" : "1.999722",
"x_serialization_backend" : "JSON::PP version 2.27300"
}
......@@ -22,5 +22,5 @@ requires:
Math::Complex: '1.39'
Test::More: '0.9301'
perl: '5.006001'
version: '1.999718'
version: '1.999722'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
......@@ -16,15 +16,15 @@ Hash: SHA1
SHA1 f6ef98e8f3f6a4f670d569f279ef5a3c05c16d0c BENCHMARK
SHA1 d681b992c9e027633a59fbd52530805ee4e1621c BUGS
SHA1 efd06baccc5c958a455a6b325cf635f0deacde10 CHANGES
SHA1 c41f7068b8a4c7202f0464ea1c59423fe6a8abd0 CHANGES
SHA1 f27c8bd98e754f96c9825fa6ce9f1244c93bdbe6 CREDITS
SHA1 bc2db74538d3acd53f71b5512a144fe18c253ecd GOALS
SHA1 fe61299e80a1dca48fbaa33f0869e3238ec07c70 HISTORY
SHA1 d6a6c30ee6d9ba6b9afab8bbf6a25e1b23c744e0 LICENSE
SHA1 d72157e69f5639f54510568d281ecd4e5f9b2957 MANIFEST
SHA1 86df44fbe1ea7a68897113f0e327d0f0c25b91e3 MANIFEST.SKIP
SHA1 c8a96d97ba87556df7f7de5f7f6f46978510556e META.json
SHA1 c941e54432f06176be2a68dc161e310558b0458e META.yml
SHA1 6b771a17276467163e462ec27c022e13adea18f6 META.json
SHA1 56d6890cc6b5ab7f2d80abcd0f8929ba98ffb1a1 META.yml
SHA1 2b614d9027b35fcc411dbb248c0ab3338ee3430f Makefile.PL
SHA1 4e2191d1724e699862efc5350f480c8e02755112 NEW
SHA1 813c62e6d3edd18b7b634765ecbd75b2cd6389a0 README
......@@ -40,10 +40,10 @@ SHA1 76efdca3603159e0ae0e18f19fe72a0211a69529 inc/Module/Install/Makefile.pm
SHA1 2e33e87882d60db3913da6284dd5295e5315e18a inc/Module/Install/Metadata.pm
SHA1 c830b819e61bda5eca077c6291293bba61b3b9f2 inc/Module/Install/Win32.pm
SHA1 cb52b9d6f88d512d448a6f35ed0af0d1201a134b inc/Module/Install/WriteAll.pm
SHA1 52e3c1a58dfc4825461262753ba022f08e2bd5c0 lib/Math/BigFloat.pm
SHA1 2c5c5ae8ad64c2d0e2dfdeb3ce720a2bdbd13dab lib/Math/BigInt.pm
SHA1 0755a2827bb311c7be7815ad2bc115645fa3cb63 lib/Math/BigInt/Calc.pm
SHA1 d8a97d875bcdc1f747b4ce76bbe3820cd53821f4 lib/Math/BigInt/CalcEmu.pm
SHA1 38c9cb43cbb0ea61e8f688135738cc22fed5532c lib/Math/BigFloat.pm
SHA1 79cb7893a6df722881091585344e450e70afba42 lib/Math/BigInt.pm
SHA1 facb14b50283a27808d8230701e6e60cee0bd403 lib/Math/BigInt/Calc.pm
SHA1 d6411946a5854fdb83c3a17d8971717762264bf3 lib/Math/BigInt/CalcEmu.pm
SHA1 385cc7ed3bf3e6290640b9880445ca9a3dea629e t/00sig.t
SHA1 551efa40942b38f7f521b5a511d08f29ef7b4a1b t/01load.t
SHA1 b2ed9206ca5b69ec3b8bbf850bf4b6dfde518e7e t/02pod.t
......@@ -69,7 +69,7 @@ SHA1 ca60a159b450321736c6f0795594ea026ff17973 t/bare_mbf.t
SHA1 5296708c577f3be9b1c198861d6b652d19a8aaf4 t/bare_mbi.t
SHA1 6a6da7dd3736d262162b029f0589da7449cae0fb t/bare_mif.t
SHA1 d280a166a98ea682d019e0d83699590812a374a9 t/big_pi_e.t
SHA1 c6e3a10413ee73f17d340494a633b778e5c3fc3d t/bigfltpm.inc
SHA1 73a0ee5c082e0f61acd39d9edab75fb340871d42 t/bigfltpm.inc
SHA1 e7690d12912e64bd5f5c340ceed152d06c54ec1b t/bigfltpm.t
SHA1 6b9090d78157541f539b2bfbd8bf25a9066857a7 t/bigintc.t
SHA1 4962d50d538ec515c1dc33b87659de906ab1ba5b t/bigintpm.inc
......@@ -79,7 +79,7 @@ SHA1 89e6c8b733ae772b7096a9edab565c4034686951 t/biglog.t
SHA1 1ff35e339b269f853106accb80c5d7ecc46e10e4 t/bigroot.t
SHA1 dcaf0d82455c9a814da942383cbceb2da7ad3a4c t/calling-class-methods.t
SHA1 63e873c5cdcccfb338fb9220d33904027865e9cf t/calling-instance-methods.t
SHA1 9edfc47684cbcf637180a766317d3357ea5713be t/calling.t
SHA1 f4dc74f308a0fe08be7c2b284384ec5bf8a6f8b8 t/calling.t
SHA1 c403d1c64ae6c3b803fc8cd0d10a1df15219057f t/config.t
SHA1 af01ecfb6f43bb518c67185eb063c196e2dbdc48 t/const_mbf.t
SHA1 17eb15c35392945a5b3ed2b711f7d166fca294de t/constant.t
......@@ -128,11 +128,11 @@ SHA1 4ac769907c7a183b9bdc7adab41a1a7f523dab14 t/with_sub.t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQEcBAEBAgAGBQJXGeBkAAoJEGcmPl2fr166/HYH/A5NmS1X0SX88aiUNQ/TDxSY
I3cPxn71GmoYscKKpUZ5iwYByra0oWhp0R5cjptzXUfGgQdJA29kiuDg+8OpojyL
hOjXcN35DYQ+LQA1JNsYW/7T//B6OZgP8FkugvfYzBhLoyY2teIYqybJZrVBgDD7
cwgQrcGoI01zIR0l+H82VUFkI72CiH/ovifvLVk2PtP4fGAaW/diDgSsiGbp8EtY
pRMg4Sb0R/jMB1BpdiJ97uAAksshlfm9h/cNlZeoUnZBB0/o8XyvMK8/VQfT8KpE
+AQ+dev+kcCAlGJFR7wh88umhlUTP1d2InuB72UlGd2KdF+NZqNyzNlu0gjoDm0=
=fN5w
iQEcBAEBAgAGBQJXH1zxAAoJEGcmPl2fr166NKIH/jrjCu4I8Pxsm+8o09C/Skdn
3j9k6La+3h1XKtQj5GQ56l8rfH9bYX0E5B568q/TMILW3xAKeM/bZ2sXRndwUQOo
/joWgFbjaUiuZROfT02e6A020iY0FoiAm3uetYkZVfD2qoeEtFO0OjMxNmMazXOT
D8vDLCNi0e/tT6cDEMQBAcDqqajEICAM6oen5TvlKQ/WIx//hD30u3tDGm+1cIZq
m3wkF8n4rbW4mnKw5GHTCMAI2CwDTphiDg5/Ri8o//J5o0zcbvziCmvvOehYU4PO
zfoPEA5qH7PEGNlYqA6O7IwwXPCGmaHd+d1TCuxFGaP97OX+NPW+MlpYStMD3ro=
=s5n4
-----END PGP SIGNATURE-----
This diff is collapsed.
This diff is collapsed.
......@@ -4,7 +4,7 @@ use 5.006001;
use strict;
use warnings;
our $VERSION = '1.999718';
our $VERSION = '1.999722';
$VERSION = eval $VERSION;
# Package to store unsigned big integers in decimal and do math with them
......
......@@ -4,7 +4,7 @@ use 5.006001;
use strict;
use warnings;
our $VERSION = '1.999718';
our $VERSION = '1.999722';
$VERSION = eval $VERSION;
package Math::BigInt;
......
......@@ -70,9 +70,9 @@ while (<DATA>) {
} elsif ($f eq "bpi") {
$try .= qq| $CLASS->bpi(\$x);|;
} elsif ($f eq "binc") {
$try .= ' ++$x;';
$try .= ' $x->binc();';
} elsif ($f eq "bdec") {
$try .= ' --$x;';
$try .= ' $x->bdec();';
} elsif ($f eq "bround") {
$try .= qq| $setup; \$x->bround($args[1]);|;
} elsif ($f eq "bfround") {
......@@ -111,7 +111,7 @@ while (<DATA>) {
} elsif ($f eq "bacmp") {
$try .= ' $x->bacmp($y);';
} elsif ($f eq "bpow") {
$try .= ' $x ** $y;';
$try .= ' $x->bpow($y);';
} elsif ($f eq "bnok") {
$try .= ' $x->bnok($y);';
} elsif ($f eq "bcos") {
......@@ -123,21 +123,21 @@ while (<DATA>) {
} elsif ($f eq "broot") {
$try .= qq| $setup; \$x->broot(\$y);|;
} elsif ($f eq "badd") {
$try .= ' $x + $y;';
$try .= ' $x->badd($y);';
} elsif ($f eq "bsub") {
$try .= ' $x - $y;';
$try .= ' $x->bsub($y);';
} elsif ($f eq "bmul") {
$try .= ' $x * $y;';
$try .= ' $x->bmul($y);';
} elsif ($f eq "bdiv") {
$try .= qq| $setup; \$x / \$y;|;
$try .= qq| $setup; scalar \$x->bdiv(\$y);|;
} elsif ($f eq "bdiv-list") {
$try .= qq| $setup; join(",", \$x->bdiv(\$y));|;
} elsif ($f eq "brsft") {
$try .= ' $x >> $y;';
$try .= ' $x->brsft($y);';
} elsif ($f eq "blsft") {
$try .= ' $x << $y;';
$try .= ' $x->blsft($y);';
} elsif ($f eq "bmod") {
$try .= ' $x % $y;';
$try .= ' $x->bmod($y);';
} else {
# Functions with three arguments
$try .= qq| \$z = $CLASS->new("$args[2]");|;
......@@ -462,7 +462,7 @@ $y = $CLASS->new("18.2");
# 2 * (2 ** int(18.2));
$x <<= $y;
is($x->copy()->bfround(-9), "524288.000000000",
is($x->copy()->bfround(-9), "602248.763144685",
qq|\$x = $CLASS->new("2"); \$y = $CLASS->new("18.2");| .
q| $x <<= $y; $x->copy()->bfround(-9);|);
......@@ -666,10 +666,10 @@ $div_scale = 40
&brsft
NaNbrsft:2:NaN
0:2:0
1:1:0
1:1:0.5
2:1:1
4:1:2
123:1:61
123:1:61.5
32:3:4
&blsft
......
......@@ -6,7 +6,7 @@ use strict;
use warnings;
use lib 't';
my $VERSION = '1.999718'; # adjust manually to match latest release
my $VERSION = '1.999722'; # adjust manually to match latest release
$VERSION = eval $VERSION;
use Test::More tests => 5;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment