| 1 |
1.7003 2025-03-25 |
| 2 |
|
| 3 |
* Sync test files with Math-BigInt. |
| 4 |
|
| 5 |
1.7002 2025-02-22 |
| 6 |
|
| 7 |
* Sync test files with Math-BigInt. |
| 8 |
|
| 9 |
1.7001 2024-01-06 |
| 10 |
|
| 11 |
* Sync test files with Math-BigInt. |
| 12 |
|
| 13 |
1.7000 2023-12-29 |
| 14 |
|
| 15 |
* Add new methods _to_hex(), _to_bin(), _to_oct(), _lcm(), _dfac(), _nok(), |
| 16 |
_fib(), and _lucas(). These are now in XS code rather than being inherited. |
| 17 |
|
| 18 |
1.6014 2023-12-27 |
| 19 |
|
| 20 |
* Sync test files with Math-BigInt. |
| 21 |
|
| 22 |
1.6013 2023-09-20 |
| 23 |
|
| 24 |
* Sync test files with Math-BigInt. |
| 25 |
|
| 26 |
* Remove obsolete link to cpanratings.org. |
| 27 |
|
| 28 |
1.6012 2023-04-03 |
| 29 |
|
| 30 |
* Sync test files with Math-BigInt. |
| 31 |
|
| 32 |
1.6011 2022-05-17 |
| 33 |
|
| 34 |
* Sync test files with Math-BigInt. |
| 35 |
|
| 36 |
1.6010 2021-12-29 |
| 37 |
|
| 38 |
* Add static gmp_version() function (code provided by FGasper on GitHub). |
| 39 |
|
| 40 |
* Make t/01load.t display the output from gmp_version(). |
| 41 |
|
| 42 |
1.6009 2021-09-28 |
| 43 |
|
| 44 |
* Sync test files with Math-BigInt. |
| 45 |
|
| 46 |
1.6008 2021-07-02 |
| 47 |
|
| 48 |
* Sync test files with Math-BigInt. |
| 49 |
|
| 50 |
1.6007 2019-10-10 |
| 51 |
|
| 52 |
* Sync test files with Math-BigInt. |
| 53 |
|
| 54 |
1.6006 2018-10-09 |
| 55 |
|
| 56 |
* Update MANIFEST.SKIP. |
| 57 |
|
| 58 |
* Sync test files with Math-BigInt. |
| 59 |
|
| 60 |
* Better Makefile.PL. |
| 61 |
|
| 62 |
1.6005 2018-04-17 |
| 63 |
|
| 64 |
* Fix memory leak in _modinv() (thanks to DANAJ). See CPAN RT #123807. |
| 65 |
|
| 66 |
* Make tests pass when '.' is not in @INC. (CPAN RT #120718) |
| 67 |
|
| 68 |
* The tests now require Test::More version 0.88 or newer. |
| 69 |
|
| 70 |
* Sync test files with Math-BigInt. |
| 71 |
|
| 72 |
* Add test files t/release-test-version.t, t/release-portability.t, and |
| 73 |
t/release-cpan-changes.t. |
| 74 |
|
| 75 |
* Use a MANIFEST.SKIP file based on the default file in the ExtUtils-Manifest |
| 76 |
distribution. |
| 77 |
|
| 78 |
* Format CHANGES according to CPAN::Changes::Spec. |
| 79 |
|
| 80 |
* Convert test file t/02pod.t to t/release-pod.t and t/03podcov.t to |
| 81 |
t/release-pod-coverage.t. |
| 82 |
|
| 83 |
1.6004 2017-02-05 pjacklam |
| 84 |
|
| 85 |
* Fix typos in POD. |
| 86 |
|
| 87 |
* Update link in SUPPORT section. |
| 88 |
|
| 89 |
* Minor improvements to the documentation (POD). |
| 90 |
|
| 91 |
1.6003 2017-01-11 pjacklam |
| 92 |
|
| 93 |
* Fix syntax for required version of Math::BigInt::Lib. |
| 94 |
|
| 95 |
* Better checking of POD coverage. |
| 96 |
|
| 97 |
* Sync test files with Math-BigInt-1.999808. |
| 98 |
|
| 99 |
1.6002 2016-12-03 pjacklam |
| 100 |
|
| 101 |
* Use ExtUtils::MakeMaker rather than Module::Install in Makefile.PL |
| 102 |
|
| 103 |
* Don't use Devel::CheckLib. It fails on Windows even in cases where |
| 104 |
this distribution would build just fine. |
| 105 |
|
| 106 |
* Update BUGS file. |
| 107 |
|
| 108 |
* Remove author information in LICENSE file. |
| 109 |
|
| 110 |
* Inform that the TODO file is not up to date. |
| 111 |
|
| 112 |
* Remove INSTALL file. The information is in the README file. |
| 113 |
|
| 114 |
1.6001 2016-11-23 pjacklam |
| 115 |
|
| 116 |
* Sync test files with Math-BigInt-1.999801. |
| 117 |
|
| 118 |
* Correct version number in CHANGES file. |
| 119 |
|
| 120 |
1.6000 2016-11-15 pjacklam |
| 121 |
|
| 122 |
* Sync test files with Math-BigInt-1.999800. |
| 123 |
|
| 124 |
* Update bundled Devel::CheckLib from v1.03 to v1.07. |
| 125 |
|
| 126 |
* Math::BigInt::GMP is now a subclass of Math::BigInt::Lib, so remove pure |
| 127 |
Perl methods from Math::BigInt::GMP that are implemented in the superclass |
| 128 |
Math::BigInt::Lib. The methods removed are _digit(), _num(), _nok(), and |
| 129 |
_log_int(). The version of _log_int() implemented in Math::BigInt::GMP was |
| 130 |
buggy anyway. |
| 131 |
|
| 132 |
* Fix _check() so it doesn't give a "use of uninitialized value" warning if |
| 133 |
given an undefined "object". |
| 134 |
|
| 135 |
* Trim whitespace in all files. |
| 136 |
|
| 137 |
* Better use of the functionality in Test::More in t/bigintg.t. |
| 138 |
|
| 139 |
1.51 2016-04-25 pjacklam |
| 140 |
|
| 141 |
* Sync test files with Math-BigInt-1.999719. |
| 142 |
|
| 143 |
1.50 2016-04-22 pjacklam |
| 144 |
|
| 145 |
* Sync test files with Math-BigInt-1.999718. |
| 146 |
|
| 147 |
1.49 2016-01-03 pjacklam |
| 148 |
|
| 149 |
* Sync test files with Math-BigInt-1.999714. |
| 150 |
|
| 151 |
1.48 2015-12-31 pjacklam |
| 152 |
|
| 153 |
* Sync test files with Math-BigInt-1.999713. |
| 154 |
|
| 155 |
1.47 2015-12-14 pjacklam |
| 156 |
|
| 157 |
* Add patch from Gregor Herrmann (GREGOA) based on code by Dana Jacobsen |
| 158 |
(DANAJ) to fix problems with the new() method when Perl is compiled with |
| 159 |
support for 64-bit integers, but on platforms when the underlying OS is |
| 160 |
32-bit (CPAN RT #71548). |
| 161 |
|
| 162 |
1.46 2015-12-03 pjacklam |
| 163 |
|
| 164 |
* Add patch from Dana Jacobsen (DANAJ) and add new test file |
| 165 |
't/mbi-from-big-scalar.t' regarding CPAN RT #103517. |
| 166 |
|
| 167 |
* Fix spelling in GMP.xs ('modifing' -> 'modifying'). |
| 168 |
|
| 169 |
* Whitespace/formatting in t/bigintg.t to make it more readble (for me, at |
| 170 |
least) and more in accordance with the 'perlstyle' manpage. |
| 171 |
|
| 172 |
1.45 2015-11-09 pjacklam |
| 173 |
|
| 174 |
* Sync test files with Math-BigInt-1.999709. |
| 175 |
|
| 176 |
* Required version of Test::More is 0.47. |
| 177 |
|
| 178 |
1.44 2015-10-29 pjacklam |
| 179 |
|
| 180 |
* Sync test files with Math-BigInt-1.999707. |
| 181 |
|
| 182 |
* Update the README file. |
| 183 |
|
| 184 |
* Remove the files INSTALL and LICENSE as this information is already covered |
| 185 |
in the file README. |
| 186 |
|
| 187 |
* Replace 'use vars ...' with 'our ...'. We require a Perl newer than 5.6.0 |
| 188 |
anyway. |
| 189 |
|
| 190 |
* Required version of Math-BigInt is now 1.999706. |
| 191 |
|
| 192 |
* Add 'Test::More' to TEST_REQUIRES in Makefile.PL. |
| 193 |
|
| 194 |
* Enable 'use warnings'. We require a Perl newer than 5.6.0 anyway. |
| 195 |
|
| 196 |
* Add 'assertlib.*\.exe' to MANIFEST.SKIP, since make generates temporary |
| 197 |
files like 'assertlibzxjE4WfG.exe' on Cygwin. |
| 198 |
|
| 199 |
1.43 2015-09-21 pjacklam |
| 200 |
|
| 201 |
* Sync test files with Math-BigInt-1.999703. |
| 202 |
|
| 203 |
* Required version of Math-BigInt is now 1.999703. |
| 204 |
|
| 205 |
* Update author information. |
| 206 |
|
| 207 |
1.42 2015-09-17 pjacklam |
| 208 |
|
| 209 |
* Sync test files with Math-BigInt-1.999702. |
| 210 |
|
| 211 |
* Required version of Math-BigInt is now 1.999702. |
| 212 |
|
| 213 |
1.41 2015-09-11 pjacklam |
| 214 |
|
| 215 |
lib/Math/BigInt/GMP.pm |
| 216 |
* Updated version number. |
| 217 |
|
| 218 |
Makefile.PL |
| 219 |
* Updated required version of Math::BigInt. |
| 220 |
|
| 221 |
t/bigfltpm.inc |
| 222 |
* Synced tests with the Math-BigInt distribution. |
| 223 |
|
| 224 |
t/bigfltpm.t |
| 225 |
* Updated number of tests. |
| 226 |
|
| 227 |
t/bigintpm.inc |
| 228 |
* Synced tests with the Math-BigInt distribution. |
| 229 |
|
| 230 |
t/bigintpm.t |
| 231 |
* Updated number of tests. |
| 232 |
|
| 233 |
1.40 2015-08-18 pjacklam |
| 234 |
|
| 235 |
CHANGES |
| 236 |
* Add changes for the newest release. |
| 237 |
* Reorder change entries into descending chronological order. |
| 238 |
|
| 239 |
lib/Devel/CheckLib.pm |
| 240 |
* Update bundled Devel::CheckLib from v1.01 to v1.03. |
| 241 |
|
| 242 |
Makefile.PL |
| 243 |
* Update required version of Math-BigInt to 1.9994. |
| 244 |
|
| 245 |
t/01load.t |
| 246 |
* Improve formatting of module version information. |
| 247 |
|
| 248 |
t/bigfltpm.t |
| 249 |
* Use the correct backend, in this case Math::BigInt::GMP. |
| 250 |
* Skip test specific for the Math::BigInt::Calc backend. |
| 251 |
|
| 252 |
t/bigintpm.inc |
| 253 |
* Rather than an early exit(), use skip() to skip tests. |
| 254 |
|
| 255 |
t/bigintpm.t |
| 256 |
* Use the correct backend, in this case Math::BigInt::GMP. |
| 257 |
|
| 258 |
t/biglog.t |
| 259 |
* Use the correct backend, in this case Math::BigInt::GMP. This was correct |
| 260 |
in v1.21, but has been wrong since then. |
| 261 |
|
| 262 |
t/bigroot.t |
| 263 |
* Use the correct backend, in this case Math::BigInt::GMP. This was correct |
| 264 |
up until v1.32, but has been wrong since then. |
| 265 |
|
| 266 |
lib/Math/BigInt/GMP.pm |
| 267 |
* Increment Math::BigInt::GMP version number to 1.40. |
| 268 |
|
| 269 |
1.39 2015-08-17 pjacklam |
| 270 |
|
| 271 |
* Updated test files with those from Math-BigInt-1.9997. |
| 272 |
|
| 273 |
1.38 2014-04-03 pjacklam |
| 274 |
|
| 275 |
* Updated test files from the Math::BigInt distribution (Peter John Acklam). |
| 276 |
|
| 277 |
* Updated POD (Peter John Acklam) |
| 278 |
|
| 279 |
* Updated bundled Devel::CheckLib from v0.93 to v1.01 (Peter John Acklam). |
| 280 |
|
| 281 |
1.37 2011-09-04 pjacklam |
| 282 |
|
| 283 |
* Updated test files from the Math::BigInt distribution (Peter John Acklam). |
| 284 |
|
| 285 |
* Updated bundled Devel::CheckLib from v0.92 to v0.93 (Peter John Acklam). |
| 286 |
|
| 287 |
* Math::BigInt::GMP now requires Math::BigInt v1.997 (Peter John Acklam). |
| 288 |
|
| 289 |
* Include "^MYMETA\.(yml|json)\z" in MANIFEST.SKIP. Whereas META.* are |
| 290 |
generated by the distribution author at packaging time, MYMETA.* are |
| 291 |
generated by the end user at configure time after any dynamic dependencies |
| 292 |
are known. (Peter John Acklam) |
| 293 |
|
| 294 |
* Changed Makefile.PL so that a "make dist" makes a META.yml and META.json. |
| 295 |
(Peter John Acklam) |
| 296 |
|
| 297 |
* Updated common test files from the Math::BigInt distribution. (Peter John |
| 298 |
Acklam) |
| 299 |
|
| 300 |
1.36 2011-02-26 pjacklam (6362 tests) |
| 301 |
|
| 302 |
* Change bigintpm.inc to reflect recent changes in the Math::BigInt |
| 303 |
distribution (Peter John Acklam). |
| 304 |
|
| 305 |
* Use a _nok() function more similar to the one in Math::BigInt::Calc |
| 306 |
(Peter John Acklam). |
| 307 |
|
| 308 |
1.35 2011-02-08 pjacklam (6361 tests) |
| 309 |
|
| 310 |
* Rename files for testing signature, module loading, and POD so the names |
| 311 |
are within the 8+3 character limit (Peter John Acklam). |
| 312 |
|
| 313 |
* Rename method _nok_ok() to the correct _nok(). There ought to have been a |
| 314 |
test catching an error like that (Peter John Acklam). |
| 315 |
|
| 316 |
* Fix _nok() giving wrong output when second input argument is zero |
| 317 |
(Peter John Acklam). |
| 318 |
|
| 319 |
* Fix _nok() so it doesn't modify its second input arg (Peter John Acklam). |
| 320 |
|
| 321 |
* Update the included Devel::CheckLib to most recent version as suggested in |
| 322 |
RE #63055 (Peter John Acklam). |
| 323 |
|
| 324 |
* Apply "chmod 0644" to the few test scripts that don't already have that |
| 325 |
mode (Peter John Acklam). |
| 326 |
|
| 327 |
1.34 2011-02-07 pjacklam (6361 tests) |
| 328 |
|
| 329 |
* Rename _num() to _str(). The old _num() did exactly what _str() is supposed |
| 330 |
to do, according to the API documentation (Peter John Acklam). |
| 331 |
|
| 332 |
* Add a _num() function which (currently) simply numifies the output from |
| 333 |
_str() (Peter John Acklam). |
| 334 |
|
| 335 |
* Clean up whitespace (Peter John Acklam). |
| 336 |
|
| 337 |
* Fix POD errors (Peter John Acklam). |
| 338 |
|
| 339 |
* Add _nok() method. Now the old claim that Math::BigInt::GMP conforms to API |
| 340 |
version 2 is actually true (Peter John Acklam). |
| 341 |
|
| 342 |
* Edit the test files that were copied from the Math::BigInt distribution, so |
| 343 |
we now test Math::BigInt against Math::BigInt::GMP, not Math::BigInt::Calc. |
| 344 |
I had forgotten this when I copied the test files from the Math::BigInt |
| 345 |
distribution. This reduces the total test count, since some test are not |
| 346 |
executed with Math::BigInt::GMP (Peter John Acklam). |
| 347 |
|
| 348 |
* Replace morse code in 'README' with proper text (Peter John Acklam). |
| 349 |
|
| 350 |
* Include '01-load.t' for explicitly testing module loading (Peter John |
| 351 |
Acklam). |
| 352 |
|
| 353 |
* Use more generic code in 'pod.t' and 'pod_cov.t' (Peter John Acklam). |
| 354 |
|
| 355 |
1.33 2011-01-30 pjacklam (6411 tests) |
| 356 |
|
| 357 |
* Fix _modinv() so that it works the same way as _modinv() in other |
| 358 |
Math::BigInt libraries: The output arguments are an object and the |
| 359 |
corresponding sign, not undef (Peter John Acklam). |
| 360 |
|
| 361 |
* Include most recent versions of the test files from the Math-BigInt |
| 362 |
distribution (bigfltpm.inc, bigfltpm.t, bigintpm.inc, bigintpm.t, |
| 363 |
biglog.t, and bigroot.t) (Peter John Acklam). |
| 364 |
|
| 365 |
* Include generic SIGNATURE test file (Peter John Acklam). |
| 366 |
|
| 367 |
* Required version of Math::BigInt is now 1.99_05 (Peter John Acklam). |
| 368 |
|
| 369 |
1.32 2010-09-23 rafl 5559 tests |
| 370 |
|
| 371 |
* Re-upload 1.31 as a stable release without further changes. |
| 372 |
|
| 373 |
1.31 2010-09-21 rafl 5559 tests DEVELOPMENT RELEASE |
| 374 |
|
| 375 |
* Add hooks for Storable (de-)serialisation. |
| 376 |
|
| 377 |
* Avoid failure in the destructor if someone blessed nonsense into our class. |
| 378 |
|
| 379 |
1.30 2010-09-20 rafl 5558 tests |
| 380 |
|
| 381 |
* Re-upload 1.29 as a stable release without further changes. |
| 382 |
|
| 383 |
1.29 2010-09-19 rafl 5558 tests DEVELOPMENT RELEASE |
| 384 |
|
| 385 |
* Attempt to fix a bug in the bundled version Devel::CheckLib. |
| 386 |
It used to ignore @Config{qw(ccflags ldflags)} and only tried to look for |
| 387 |
headers and libraries with the compiler's default include- and lib-paths as |
| 388 |
well as those explicitly asked for by the user. |
| 389 |
|
| 390 |
1.28 2010-09-17 rafl 5558 tests |
| 391 |
|
| 392 |
* Re-upload 1.27 without further changes as a stable release. |
| 393 |
|
| 394 |
1.27 2010-09-15 rafl 5558 tests DEVELOPMENT RELEASE |
| 395 |
|
| 396 |
* Try to support perls older than 5.8.8 again. |
| 397 |
Tested with 5.8.7 and 5.6.2. |
| 398 |
|
| 399 |
1.26 2010-09-14 rafl 5558 tests DEVELOPMENT RELEASE |
| 400 |
|
| 401 |
* Error out early if libgmp or gmp.h are missing. |
| 402 |
|
| 403 |
* Clone Math::BigInt::GMP instances on thread cloning. |
| 404 |
This should make the module threadsafe. |
| 405 |
|
| 406 |
1.25 2010-09-10 rafl 5536 tests |
| 407 |
|
| 408 |
* Fix tests with Math::BigInt >= 1.90 and depend on it. |
| 409 |
|
| 410 |
1.24 2007-07-31 Tels 5530 tests |
| 411 |
|
| 412 |
* apply patch for warnings about ptr size mismatch under Cygwin (thanx |
| 413 |
Reini Urban!) |
| 414 |
|
| 415 |
* make it work under 5.6.x again by defining SvUOK() (Thanx Marcus |
| 416 |
Holland-Moritz and Reini Urban!) |
| 417 |
|
| 418 |
1.23 2007-07-25 Tels 5527 tests |
| 419 |
|
| 420 |
* require Math::BigInt 1.87 |
| 421 |
|
| 422 |
* fix for _new() (appeared under Cygwin, but possible others, thanx |
| 423 |
Linda W. (report) and Reini Urban (patch)!) |
| 424 |
|
| 425 |
1.22 2007-06-01 Tels 5527 tests |
| 426 |
|
| 427 |
* require Math::BigInt 1.86 |
| 428 |
|
| 429 |
* support api_version() 2 by adding _nok() |
| 430 |
|
| 431 |
* fix compilation issues on Mac/Darwin |
| 432 |
|
| 433 |
* _log_int() modifies it's argument instead of just returning a |
| 434 |
different object as result |
| 435 |
|
| 436 |
* speed up _log_int() greatly by taking a guess of the result |
| 437 |
and then improve it, instead of startig with 1 and going up. This means |
| 438 |
it takes now a more or less constant time, instead of a time proportional |
| 439 |
to the size/value of the result: |
| 440 |
|
| 441 |
Using Math::BigInt::GMP v1.21 |
| 442 |
baselen 2: 3s (3.22 usr + 0.00 sys = 3.22 CPU) @ 7270/s (n=23411) |
| 443 |
baselen 2 big: 3s (3.11 usr + 0.06 sys = 3.17 CPU) @ 962/s (n=3051) |
| 444 |
baselen 3: 3s (3.20 usr + 0.00 sys = 3.20 CPU) @ 1304/s (n=4173) |
| 445 |
baselen 7: 3s (3.20 usr + 0.00 sys = 3.20 CPU) @ 3306/s (n=10582) |
| 446 |
baselen 8: 3s (3.14 usr + 0.00 sys = 3.14 CPU) @ 3769/s (n=11836) |
| 447 |
baselen 11: 3s (3.24 usr + 0.00 sys = 3.24 CPU) @ 4750/s (n=15392) |
| 448 |
baselen 14: 3s (3.20 usr + 0.00 sys = 3.20 CPU) @ 5835/s (n=18673) |
| 449 |
baselen 20: 3s (3.10 usr + 0.03 sys = 3.13 CPU) @ 7621/s (n=23855) |
| 450 |
baselen 3 big: 4s (3.17 usr + 0.00 sys = 3.17 CPU) @ 320/s (n=1016) |
| 451 |
|
| 452 |
Using Math::BigInt::GMP v1.22 |
| 453 |
baselen 2: 3s (3.15 usr + 0.00 sys = 3.15 CPU) @ 16290/s (n=51316) |
| 454 |
baselen 2 big: 4s (3.21 usr + 0.01 sys = 3.22 CPU) @ 15933/s (n=51306) |
| 455 |
baselen 3: 4s (3.12 usr + 0.02 sys = 3.14 CPU) @ 15555/s (n=48844) |
| 456 |
baselen 7: 4s (3.15 usr + 0.07 sys = 3.22 CPU) @ 15658/s (n=50420) |
| 457 |
baselen 8: 3s (3.18 usr + 0.01 sys = 3.19 CPU) @ 15610/s (n=49797) |
| 458 |
baselen 11: 3s (3.14 usr + 0.00 sys = 3.14 CPU) @ 15555/s (n=48844) |
| 459 |
baselen 14: 3s (3.15 usr + 0.00 sys = 3.15 CPU) @ 15506/s (n=48844) |
| 460 |
baselen 20: 3s (3.14 usr + 0.01 sys = 3.15 CPU) @ 15506/s (n=48844) |
| 461 |
baselen 3 big: 3s (3.10 usr + 0.04 sys = 3.14 CPU) @ 15555/s (n=48844) |
| 462 |
|
| 463 |
1.21 2007-04-17 Tels 5488 tests |
| 464 |
|
| 465 |
* add _as_oct(), _from_oct(), _alen(), _1ex() and some _root() tests |
| 466 |
|
| 467 |
* require Math::BigInt 1.83 |
| 468 |
|
| 469 |
* support api_version() by adding _1ex() and _alen() |
| 470 |
|
| 471 |
* _new(): take a shortcut if the passed an IV (integer value) |
| 472 |
|
| 473 |
1.20 2007-04-09 Tels 5351 tests |
| 474 |
|
| 475 |
* remove PREREQ_FATAL because the toolchain is broken and cannot handle it |
| 476 |
|
| 477 |
* take over tests from MBI 1.82 and require it |
| 478 |
|
| 479 |
* require Perl 5.6.2 as minimum |
| 480 |
|
| 481 |
* speed up _zeros(): |
| 482 |
+ use Newx() instead of a full-blown SV for temp storage |
| 483 |
+ no need to allocate temp storage for numbers < 10 |
| 484 |
|
| 485 |
* put _len() into XS code, making $x->length() faster (about 30% for "123", |
| 486 |
less for longer numbers as the binary=>decimal conversion dominates) |
| 487 |
|
| 488 |
* add POD tests |
| 489 |
|
| 490 |
* add MANIFEST.SKIP |
| 491 |
|
| 492 |
1.19 2007-01-27 Tels 5339 tests |
| 493 |
|
| 494 |
* add support for octal |
| 495 |
|
| 496 |
* take over tests from MBI 1.78 and require it |
| 497 |
|
| 498 |
1.18 2005-04-11 Tels 5186 tests |
| 499 |
|
| 500 |
* _log_int() handles now plain scalars as $base parameter |
| 501 |
|
| 502 |
* take over tests from MBI 1.76, require it |
| 503 |
|
| 504 |
1.17 2005-01-01 Tels 5182 tests |
| 505 |
|
| 506 |
* use XSLoader instead of DynaLoader to save a tiny amount of memory |
| 507 |
|
| 508 |
* take over tests from Math::BigInt v1.74 |
| 509 |
|
| 510 |
* require Math::BigInt v1.74 |
| 511 |
|
| 512 |
* simplify sub code in XS (left-over artifact from v1.16) |
| 513 |
|
| 514 |
* fix a leak in _zeros() |
| 515 |
|
| 516 |
* _zeros() is now much faster for odd numbers (O(1) vs. O(N*N)) |
| 517 |
|
| 518 |
1.16 2004-12-09 Tels 5112 tests |
| 519 |
|
| 520 |
* fixed a leak in _div() (Thanx Tassilo v. Parsival!) |
| 521 |
|
| 522 |
* put _div() into XS, making division slightly faster for small numbers |
| 523 |
|
| 524 |
* put leak.pl and leaktest into MANIFEST for later checking |
| 525 |
|
| 526 |
1.15 2004-11-22 Tels 5112 tests |
| 527 |
|
| 528 |
* some small cleanups in the Perl code |
| 529 |
|
| 530 |
* changed "class" to "Class" to avoid the reserved keyword for MS compiler |
| 531 |
|
| 532 |
* do not pull unused parameter "Class" from stack - avoid compiler warnings |
| 533 |
|
| 534 |
* put _sub() into XS for more speed and smaller memory footprint |
| 535 |
|
| 536 |
* testsuite from MBI v1.73 |
| 537 |
|
| 538 |
1.14 2004-02-15 Tels 4867 tests |
| 539 |
|
| 540 |
* require BigInt v1.70, use tests from it and make API compatible with it |
| 541 |
|
| 542 |
* _rsft() and _lsft() modify their argument instead of making a copy, |
| 543 |
meaning brsft() and blsft() got about 20% faster in BigInt |
| 544 |
|
| 545 |
* added a working _zeros() method |
| 546 |
|
| 547 |
* added a working _log_int() method |
| 548 |
|
| 549 |
1.13 2004-01-10 Tels 4759 tests |
| 550 |
|
| 551 |
* tests from BigInt v1.68 |
| 552 |
|
| 553 |
* removed DESTROY from GMP.pm and made GMP.xs destroy => DESTROY |
| 554 |
|
| 555 |
* removed _num from GMP.pm and made GMP.xs __stringify => _num |
| 556 |
|
| 557 |
* removed _modinv() from GMP.pm and fixed up _modinv in GMP.xs |
| 558 |
|
| 559 |
* disabled the borken _log_int() from the XS code |
| 560 |
|
| 561 |
* modify $x in place for _dec, _inc, _add, _mod, _mul, _fac, _and, _or, |
| 562 |
_xor, _sqrt, _root and _sub (sub in non-reversed form), this removes some |
| 563 |
malloc/free and makes these ops slightly faster |
| 564 |
(between 10 and 33% in Math::BigInt (!), depending on input and size) |
| 565 |
|
| 566 |
1.12 2003-12-11 Tels 4677 tests |
| 567 |
|
| 568 |
* testsuite from v1.67, especialy revamped bigintg.t |
| 569 |
|
| 570 |
* fixed prereq to require BigInt v1.67 |
| 571 |
|
| 572 |
* added _log_int() to XS code |
| 573 |
|
| 574 |
* some routines did only return the result, but not modify $x in place |
| 575 |
|
| 576 |
* testsuite from v1.65 |
| 577 |
|
| 578 |
* fixed prereq to require BigInt v1.65 |
| 579 |
|
| 580 |
* removed unused function _mmod from XS code |
| 581 |
|
| 582 |
* removed unnecc. if len == 0 check in _as_bin(), _as_hex() etc |
| 583 |
|
| 584 |
* replace some RETVAL = malloc() lines with defined to make changing them |
| 585 |
later much easier |
| 586 |
|
| 587 |
1.11 2003-01-01 Tels 4109 tests |
| 588 |
|
| 589 |
* rewrote stringify_bin() and stringify_hex() to not allocate scratch buffers |
| 590 |
Faster, no longer needs malloc()/free() and strlen(). |
| 591 |
Thanx to Sysiphus for pointing this out. |
| 592 |
|
| 593 |
* removed _as_hex() and _as_bin() from GMP.pm and moved the logic to GMP.xs |
| 594 |
|
| 595 |
* documented in todo to replace all malloc()/free() with New and Safefree() |
| 596 |
|
| 597 |
* removed unused cmp_two() function in GMP.xs |
| 598 |
|
| 599 |
* removed the unused "$zero = ..."/"$one = ..." in GMP.pm |
| 600 |
|
| 601 |
1.10 2002-12-24 Tels 4109 tests |
| 602 |
|
| 603 |
* Merry Christmas and a Happy New Year to all! |
| 604 |
|
| 605 |
* cut out more dead wood from GMP.xs, GMP.so file shrunk a bit |
| 606 |
|
| 607 |
* added some comments in GMP.xs |
| 608 |
|
| 609 |
* fixed PREREQ to BigInt v1.64 since v1.65 is not yet out *sigh* |
| 610 |
|
| 611 |
* more functions like _is_odd()/_is_even()/_acmp() directly in XS - cut away |
| 612 |
perl layer subroutines for more speed (about 10-30% more ops/s for small |
| 613 |
argument or constant cases or other cases where the overhead is greater |
| 614 |
than the actual math operation itself) |
| 615 |
|
| 616 |
* __stringify() no longer malloc()s a temp. storage => faster |
| 617 |
|
| 618 |
* added _root(), _lsft() and_rsft() functions for great speedups |
| 619 |
|
| 620 |
* Running the benchmark script above (adopted a bit) on the same 1 Ghz AMD |
| 621 |
under BigInt v1.64: |
| 622 |
Benchmark: running div_l, mod_l, mod_s for at least 3 CPU seconds... |
| 623 |
div_l: 3s ( 3.20 usr + 0.00 sys = 3.20 CPU) @ 4655.00/s (n=14896) |
| 624 |
mod_l: 4s ( 3.31 usr + 0.00 sys = 3.31 CPU) @ 6851.96/s (n=22680) |
| 625 |
mod_s: 3s ( 3.01 usr + 0.00 sys = 3.01 CPU) @ 7088.37/s (n=21336) |
| 626 |
|
| 627 |
* Full (memory and other) benchmarks at http://bloodgate.com/perl/bigint/ |
| 628 |
|
| 629 |
* no longer needs Math::GMP (and Carp), but uses own XS layer |
| 630 |
|
| 631 |
* is thus faster (saves one perl subroutine layer) and less memory hungry |
| 632 |
(it now uses even less memory than using Calc!) |
| 633 |
new XS lets us cut out a subroutine layer |
| 634 |
|
| 635 |
* new XS will enable us to implement *all* missing functions like _root(), |
| 636 |
_as_hex(), _as_bin() and _rsft(), _lsft() |
| 637 |
|
| 638 |
* fixed PREREQ to BigInt v1.65 |
| 639 |
|
| 640 |
* extended tests in bigintg.t to cover more functions |
| 641 |
|
| 642 |
1.08 2002-12-12 Tels 4069 tests (never released) |
| 643 |
|
| 644 |
* added implementation of bmodpow() using GMPs mpow_gmp() |
| 645 |
|
| 646 |
* release signed by key http://bloodgate.com/tels.asc id 93B84C15 |
| 647 |
|
| 648 |
1.07 2002-07-07 Tels |
| 649 |
|
| 650 |
* testsuite from BigInt v1.60 - 4054 tests |
| 651 |
|
| 652 |
* fixed PREREQUISITES to BigInt v1.60 |
| 653 |
|
| 654 |
1.06 2002-03-23 Tels |
| 655 |
|
| 656 |
* testsuite from v1.55 - 3874 tests |
| 657 |
|
| 658 |
* fixed PREREQUISITES to Math::GMP v2.03, BigInt v1.55 |
| 659 |
|
| 660 |
* fixed typos in CHANGES |
| 661 |
|
| 662 |
* added _from_bin() |
| 663 |
|
| 664 |
1.05 2002-02-16 Tels |
| 665 |
|
| 666 |
* tests from Math::BigInt v1.51 |
| 667 |
|
| 668 |
* replaced _core_lib() by config()->{lib} |
| 669 |
|
| 670 |
* added _and, _or, _xor (using Math::GMP internal methods) |
| 671 |
|
| 672 |
* switched _fac over to use Math::GMP gmp_fac() |
| 673 |
|
| 674 |
* added _sqrt() using gmp_sqrt() |
| 675 |
|
| 676 |
* used div_two and bdiv_two for _div() |
| 677 |
|
| 678 |
* tests for _div() in list context and _mod |
| 679 |
|
| 680 |
* added _from_hex() |
| 681 |
|
| 682 |
The speedups in band(), bxor(), bior() and bfac() are at least factor 10 for |
| 683 |
small numbers and quickly raise as the numbers grow ;) |
| 684 |
The speedup for bmod() and bdiv() aren't that dramatic, but still worth it. |
| 685 |
|
| 686 |
1.04 2002-01-26 Tels |
| 687 |
|
| 688 |
* use $zero,$one,$two etc instead of 0,1,2 in some routines |
| 689 |
|
| 690 |
* tests from Math::BigInt v1.50 |
| 691 |
|
| 692 |
* bypass Math::GMP's overload interface and use Math::GMP::gmp_foo() directly |
| 693 |
|
| 694 |
* added _gcd() and _fac() for more speed in bgcd() and bfac(), respectively |
| 695 |
|
| 696 |
* _is_odd()/_is_even() use $two instead of 2: 5600 op/s instead of 4700 |
| 697 |
|
| 698 |
1.03 2001-11-01 Tels |
| 699 |
|
| 700 |
* taken over tests from BigInt v1.45 |
| 701 |
|
| 702 |
* added _mod() for more speed for $x % $y |
| 703 |
|
| 704 |
#!/usr/bin/perl -w |
| 705 |
use lib 'lib'; |
| 706 |
#use lib '../Math-BigInt-GMP-1.02/lib'; |
| 707 |
use Math::BigInt lib => 'GMP'; |
| 708 |
use Benchmark; |
| 709 |
my $digits = 1024; |
| 710 |
my $x = Math::BigInt->new('1' . '0' x $digits); |
| 711 |
my $y = Math::BigInt->new('3' . '0' x ($digits - 2) . '3'); |
| 712 |
my $u = Math::BigInt->new('3'); |
| 713 |
timethese ( 2000, |
| 714 |
{ |
| 715 |
mod_l => sub { $z = $x % $y, }, |
| 716 |
mod_s => sub { $z = $x % $u, }, |
| 717 |
div_l => sub { ($z,$r) = $x->copy()->bdiv($y), }, |
| 718 |
} ); |
| 719 |
|
| 720 |
On a 1 Ghz Athlon with v1.45 of BigInt in ops/s: |
| 721 |
v1.02 v1.03 |
| 722 |
mod_s 1100 2350 |
| 723 |
mod_l 1111 2325 |
| 724 |
div_l 1260 1300 |
| 725 |
|
| 726 |
1.02 2001-09-02 Tels |
| 727 |
|
| 728 |
* removed auto-export and added empty import() |
| 729 |
|
| 730 |
* taken over tests from BigInt v1.42 |
| 731 |
|
| 732 |
1.01 2001-08-06 Tels |
| 733 |
|
| 734 |
* first release |
| 735 |
|
| 736 |
* fixed all the bugs in v1.00 |
| 737 |
|
| 738 |
* taken over tests from BigInt v1.40 |
| 739 |
|
| 740 |
1.00 2001-07-22 Tels |
| 741 |
|
| 742 |
* First version (basically working with some quirks) |