summaryrefslogtreecommitdiff
path: root/ext/gmp/gmp.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #15835.jim winstead2002-04-091-1/+1
|
* Fixed bug: #16237foobar2002-03-271-4/+4
|
* Maintain headers.Sebastian Bergmann2002-02-281-1/+1
|
* '0b' could be the beginning of a hex string (without leading '0x') so ifSean Bright2002-02-101-1/+1
| | | | | the user specifies base 16, use that instead.
* Fix for bugs #10133 and #15454.Sean Bright2002-02-101-12/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #15454 results from a bug in GMP. If you pass in a string '0xABCD' and specify a base of 0, GMP figures out that it is hex and skips over the 0x characters. If you specify base 16, then it doesn't skip those chars. This was confirmed with the following test program: #include <stdio.h> #include <gmp.h> int main() { char *str_one, *str_two; mpz_t num_one, num_two; mpz_init_set_str (num_one, "0x45", 0); str_one = mpz_get_str(NULL, 10, num_one); mpz_init_set_str (num_two, "0x45", 16); str_two = mpz_get_str(NULL, 10, num_two); printf("%s / %s\n", str_one, str_two); mpz_clear (num_one); mpz_clear (num_two); return 0; } We now take anything that starts with 0[xX] as hexidecimal and anything that starts 0[bB] as binary (this is what GMP does internally). We also no longer force the base to 10 or 16, but instead let GMP decide what the best base is, be it hex, dec, or octal.
* proto fixHartmut Holzgraefe2001-12-151-1/+1
|
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* * zend_module_entry change: apino, debug and zts are moved first,Stig Bakken2001-10-111-0/+2
| | | | | | see README.EXTENSIONS file for upgrade help. @Introduced extension version numbers (Stig)
* - Don't wrap lines... this is annoying while coding.Derick Rethans2001-09-091-2/+2
|
* WhitespaceZeev Suraski2001-08-111-14/+14
|
* ZEND macro-rename.foobar2001-08-111-6/+6
|
* Another TSRM fix. Plus killed some compile warnings.foobar2001-08-071-22/+23
|
* (gmp_init) Added extra (optional) argument to gmp_init():Stanislav Malyshev2001-08-051-14/+26
| | | | | | | | | | a base argument which indicates the number base. E.g.: gmp_init('1010101010',2); // feed gmp a binary value. Patch by Troels. @- Added optional extra argument to gmp_init(). The extra argument @ indicates which number base gmp should use when converting a @ string to the gmp-number. (Troels)
* More TSRMLS_FETCH annihilationZeev Suraski2001-07-311-2/+3
|
* More TSRMLS_FETCH work, and a bit of cleanupZeev Suraski2001-07-301-3/+0
|
* Avoid TSRMLS_FETCH()'s, and clean up a bit of stale extern's and layout on ↵Zeev Suraski2001-07-301-3/+0
| | | | the way
* Make gmp compile againStanislav Malyshev2001-06-061-6/+6
|
* Fix folding and clean up some extensionsRasmus Lerdorf2001-06-061-1/+2
|
* vim-6 does folding - clean up a bunch of missing folding tags plusRasmus Lerdorf2001-06-051-12/+62
| | | | | some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
* * include "config.h" if HAVE_CONFIG_H is defined (for standalone dso build)Stig Bakken2001-05-241-0/+4
|
* - Fix copyright notices with 2001Andi Gutmans2001-02-261-1/+1
|
* Fix prototypesStanislav Malyshev2000-12-061-9/+9
| | | | | Fix prefect_square return
* Make GMP use Zend's memory functionsStanislav Malyshev2000-12-051-0/+18
|
* Fix prototypesStanislav Malyshev2000-12-051-2/+2
|
* Add check for conversion baseStanislav Malyshev2000-12-051-0/+5
|
* Fixed some protos.Egon Schmid2000-12-011-76/+38
|
* Add more GMP functions, fix a couple of bugsStanislav Malyshev2000-11-291-29/+123
|
* GNU GMP - arbitrary precision nubers libraryStanislav Malyshev2000-11-261-0/+1086