summaryrefslogtreecommitdiff
path: root/ext/gmp/php_gmp.h
Commit message (Collapse)AuthorAgeFilesLines
* Replace zend_bool uses with boolNikita Popov2021-01-151-1/+1
| | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* Generate functions entries from stubs for another set of extensionsMáté Kocsis2020-04-051-52/+0
| | | | Closes GH-5351
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | Closes GH-4732.
* Remove local variablesPeter Kokot2019-02-031-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
|
* year++Xinchen Hui2018-01-021-1/+1
|
* Add gmp_kronecker()Nikita Popov2017-12-111-0/+1
| | | | | Exposes the mpz_kronecker(), mpz_si_kronecker() and mpz_kronecher_si() for computing the Kronecker symbol.
* Add gmp_perfect_power()Nikita Popov2017-12-111-0/+1
| | | | | | Exposes the mpz_perfect_power_p() function. We already had the more specific gmp_perfect_square() function.
* Add gmp_lcm()Nikita Popov2017-12-111-0/+1
| | | | | | | Exposes mpz_lcm() and mpz_lcm_ui() for calculating the least common multiple. We already expose the somewhat complementary gmp_gcd() function.
* Add gmp_binomial()Nikita Popov2017-12-111-0/+1
| | | | | Adds PHP bindings for mpz_bin_ui and mpz_bin_uiui, for calculating binomial coefficients.
* Make GMP more usable by third-party extensions.Sara Golemon2017-10-091-17/+0
| | | | | | | | Export a PHPAPI function to return gmp_ce (and make the actual storage static). Provide gmp_object struct in header w/ inline accessor. Install php_gmp_int.h header. Remove unnecessary `#ifdef HAVE_GMP` checks.
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Move semicolon into TSRMLS_CACHE_EXTERN/DEFINENikita Popov2016-03-031-1/+1
| | | | Also re bug #71575.
* Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| |
| * bump yearXinchen Hui2015-01-151-1/+1
| |
* | switch to the unified globals accessor where appropriateAnatol Belski2015-07-291-6/+3
| |
* | cleanup the mod version macros, round 2Anatol Belski2015-03-231-0/+3
| |
* | made ZEND_TSRMLS_CACHE_* macros look like function callsAnatol Belski2015-02-161-1/+1
| | | | | | | | which also comply with the current semantics for such macros
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into native-tlsAnatol Belski2014-12-051-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * origin/master: (111 commits) Fix zend_fcall_info_arg*() to use ZVAL_COPY Fixed #65213 - cannot cast SplFileInfo to boolean add initial install switch to C travis project instead of PHP use the generic TRAVIS environment var to check for travis (see http://docs.travis-ci.com/user/ci-environment/) fix TS build add config option to target codegen architectures updated NEWS updated NEWS Fixed bug #55541 errors spawn MessageBox, which blocks test automation Get rid of duplicate handlers (ZEND_ADD_SPEC_TMP_TMP and ZEND_ADD_SPEC_VAR_VAR are absolutely the same). Use zend_string* for op_array->arg_info[]->name and op_array->arg_info[]->class_name. For internal functions we still use char*. Fixed __debugInfo() support Update UPGRADING for the new variadic functions, and re-sort. Improved POST INC/DEC make sure that we don't truncate the stack trace and cause false test failures when the test is executed in a directory with long path Missed closed folder mark Revert "Unecessary assignment" Fixed improper memory release Unecessary assignment ...
| * | gmp_random_seed()Leigh2014-10-191-0/+1
| | |
* | | opcache, intl, gmp, exif, com, bcmath to use static tsrmlsAnatol Belski2014-10-171-1/+4
|/ /
* | Merge branch 'PHP-5.6'Stanislav Malyshev2014-10-141-0/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: update NEWS and UPGRADING Upated NEWS Address issues raised by @nikic Make sure min < max Mersenne Twister was added in GMP 4.2 Add test files Add gmp_random_bits(bits) and gmp_random_range(min, max) Change GMPs default PRNG to Mersenne Twister Conflicts: ext/gmp/gmp.c
| * Add gmp_random_bits(bits) and gmp_random_range(min, max)Leigh2014-09-231-0/+2
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | fix datatypes for gmp to be compatible with GMP/MPIR on different platformsAnatol Belski2014-09-021-0/+9
|/
* Implement gmp_import() and gmp_export()Leigh2014-09-021-0/+2
|
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Add gmp_root() and gmp_rootrem() functionsNikita Popov2013-11-291-1/+3
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* remove unused PHP_EXTNAME_API macros.Nuno Lopes2008-01-031-6/+0
| | | | | #in preparation for the gcc 4 visibility patch
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* add testbit()Stanislav Malyshev2007-11-011-0/+1
|
* MFHAntony Dovgal2007-01-121-1/+0
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* MFH: add gmp_nextprime()Antony Dovgal2006-07-181-0/+1
| | | | | patch by ants dot aasma at gmail dot com
* bump year and license versionfoobar2006-01-011-3/+3
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* - Happy new year and PHP 5 for rest of the files too..foobar2004-01-081-2/+2
| | | | | # Should the LICENSE and Zend/LICENSE dates be updated too?
* - Fixed bug #26267 (gmp_random() leaks memory and does not produce random ↵foobar2003-11-191-17/+6
| | | | | | | numbers) # ..and mpz_random() is obsolete according to the GNU MP manual.
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* Maintain headers.Sebastian Bergmann2002-02-281-1/+1
|
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* ZEND macro-rename.foobar2001-08-111-3/+3
|