summaryrefslogtreecommitdiff
path: root/Zend/zend_multiply.h
Commit message (Collapse)AuthorAgeFilesLines
* Improve type declarations for Zend APIsGeorge Peter Banyard2020-08-281-9/+9
| | | | | | | | | Voidification of Zend API which always succeeded Use bool argument types instead of int for boolean arguments Use bool return type for functions which return true/false (1/0) Use zend_result return type for functions which return SUCCESS/FAILURE as they don't follow normal boolean semantics Closes GH-6002
* Remove local variablesPeter Kokot2019-02-031-10/+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.
* Adios, yearly copyright rangesZeev Suraski2019-01-301-1/+1
|
* Remove unused Git attributes identPeter Kokot2018-07-251-2/+0
| | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* Micro-optimizationsDmitry Stogov2018-06-061-9/+23
|
* year++Xinchen Hui2018-01-021-1/+1
|
* further sync for vim mode linesAnatol Belski2017-07-041-0/+2
|
* Fix ZEND_SIGNED_MULTIPLY_LONG for AArch64Andy Postnikov2017-01-091-2/+2
| | | | Register operands are required in this context.
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* add pragmaAnatol Belski2016-12-031-0/+1
|
* suffix CSAnatol Belski2016-12-031-1/+1
|
* Improve multiplication on x64.Anatol Belski2016-12-031-1/+15
| | | | Thanks Bob for the spot.
* Merge branch 'PHP-7.1'Stanislav Malyshev2016-11-051-0/+13
|\ | | | | | | | | * PHP-7.1: More int->size_t and string overflow fixes
| * More int->size_t and string overflow fixesStanislav Malyshev2016-11-051-0/+13
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2016-10-131-1/+1
|\ \ | |/ | | | | | | * PHP-7.0: rename publicly exposed symbol to avoid name conflicts
| * rename publicly exposed symbol to avoid name conflictsAnatol Belski2016-10-131-1/+1
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Stanislav Malyshev2016-10-121-0/+12
|\ \ | |/ | | | | | | | | | | * PHP-7.0: Fix outlen for openssl function Syncronize with 5.6 - __toString should return "" Fix potential overflows in php_pcre_replace_impl
| * Fix potential overflows in php_pcre_replace_implStanislav Malyshev2016-10-121-0/+12
| |
* | Check them in autoconfXinchen Hui2016-08-111-2/+2
| |
* | Use checked arithmetic intrinsics instead of asm, when possibleAndrea Faulds2016-08-101-1/+23
|/
* bump year which is missed in rev 49493a2Xinchen Hui2016-01-021-1/+1
|
* Improve performance of PowerPC64 ZEND_SIGNED_MULTIPLY_LONGAnton Blanchard2015-07-281-14/+13
| | | | | | | | | | | | | | | | | | | | | | | Detecting overflow with the XER is slow, partially because we have to clear it before use. We can do better by using a trick where we compare the high 64 bits of the result with the low 64 bits shifted right 63 bits. This is 7% faster on a POWER8 running a simple testcase: <?php function testcase($count = 100000000) { for ($i = 0; $i < $count; $i++) { $x = 1; $x = $x * 2; $x = $x * 2; $x = $x * 2; $x = $x * 2; } } testcase(); ?>
* merge ZEND_SIGNED_MULTIPLY_LONG for i386 and x86_64Elan Ruusamäe2015-02-281-13/+1
| | | | | as the definitions are identical refs b7eb3c1c5a858e98985adc2335df9b4a021ade51
* bump yearXinchen Hui2015-01-151-1/+1
|
* PowerPC64 support in safe_address functionGustavo Frederico Temple Pedrosa2014-12-161-0/+24
| | | | | Add a ppc64-specific implementation of the safe_address function with overflow checking.
* PowerPC64 support in long multiplicationGustavo Frederico Temple Pedrosa2014-12-011-0/+18
| | | | | | In long integer multiplications, avoid casting both operands to long double and use an inline assembly-based overflow checking function instead.
* Fix allocator for 64bit zend_long with 32bit longNikita Popov2014-10-161-1/+1
|
* Drop zend_long64 in favor of int64_tNikita Popov2014-10-161-5/+5
| | | | | Also drop ZEND_HAVE_LONG64, because we already require the presence of a int64_t type.
* Expose zend_safe_address() and use it in zend_arena_calloc()Dmitry Stogov2014-09-181-0/+138
|
* Revert "Move safe_address into zend_multiply.h"Nikita Popov2014-09-061-126/+0
| | | | | | | This reverts commit 43b02e169c718335a82b8c90c3252194f988659a. I'm getting symbol resolution issues for zend_error_noreturn in the opcache.so, so reverting this for now.
* Move safe_address into zend_multiply.hNikita Popov2014-09-061-0/+126
| | | | | | | This allows reuse in zend_arena_calloc. Also renamed the function to zend_safe_address as it's no longer private to the allocator.
* Fixed constants in Zend/zend_multiply.hAndrea Faulds2014-08-271-1/+1
| | | | | Conflicts: Zend/zend_multiply.h
* master renamings phase 5Anatol Belski2014-08-251-1/+1
|
* master renames phase 1Anatol Belski2014-08-251-12/+12
|
* further fixes on coreAnatol Belski2014-08-161-1/+1
|
* first shot on merging the core fro the int64 branchAnatol Belski2014-08-161-11/+24
|
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Merge branch 'PHP-5.4' into PHP-5.5Gustavo Lopes2013-04-301-2/+2
|\ | | | | | | | | | | | | | | * PHP-5.4: Fix bug #64729: compilation failure on x32 Conflicts: Zend/zend_alloc.c
| * Fix bug #64729: compilation failure on x32Gustavo Lopes2013-04-301-2/+2
| |
| * Happy New YearXinchen Hui2013-01-011-1/+1
| |
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * MFH: Arithmetic speedup. Inlined most probable code-paths for arithmetic ↵Dmitry Stogov2011-05-311-0/+12
| | | | | | | | operations directly into executor.
* | Low-level ARM optimizationsArd Biesheuvel2013-02-111-10/+35
| | | | | | | | | | - added ARM versions of zend_mm_high_bit()/zend_mm_low_bit() - improved safe_address()
* | Happy New YearXinchen Hui2013-01-011-1/+1
| |
* | - Year++Felipe Pena2012-01-011-1/+1
| |
* | Arithmetic speedup. Inlined most probable code-paths for arithmetic ↵Dmitry Stogov2011-05-231-0/+12
|/ | | | operations directly into executor.
* - Year++Felipe Pena2011-01-011-1/+1
|
* sed -i "s#1998-2009#1998-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-051-1/+1
|
* Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* Optimized ZEND_SIGNED_MULTIPLY_LONG() (Matt)Dmitry Stogov2008-07-241-0/+13
|