summaryrefslogtreecommitdiff
path: root/ext/standard/math.c
Commit message (Collapse)AuthorAgeFilesLines
* - Fix for bug #14966Derick Rethans2002-04-011-1/+1
|
* Fix thread-safe build.Sebastian Bergmann2002-03-111-2/+2
|
* handle numeric strings. this means we're less picky about the argumentjim winstead2002-03-101-7/+4
| | | | | types, but the math functions aren't generally that picky.
* php has no 'double', only 'float'Hartmut Holzgraefe2002-03-021-8/+8
|
* Maintain headers.Sebastian Bergmann2002-02-281-3/+3
|
* Added fmod() functionYasuo Ohgaki2002-02-211-0/+15
| | | | | # Is there any reason that math.c does not use errno?
* These are now defined in zend_config.w32.h.Jon Parise2002-01-281-5/+0
|
* zend_isinf() is already defined in Zend/zend_config.w32.h for Win32.Jon Parise2002-01-271-1/+0
|
* Use the zend_* versions of finite(), isinf(), and isnan(), as definedJon Parise2002-01-271-7/+7
| | | | | | | | in php_config.h. Redefine the zend_* versions in the case of Win32. This fixes the build on systems that don't provide a native version of, say, isinf() (e.g. Solaris).
* Rename finite/isinf/isnan to more standard is_*() names.jim winstead2002-01-091-6/+6
|
* Fix the Win32 compile.jim winstead2002-01-051-0/+6
|
* Fixed some protos.Egon Schmid2002-01-051-30/+25
|
* Apparently multi_convert_to_double_ex() didn't quite do what Ijim winstead2002-01-051-3/+4
| | | | | thought. Still need to handle numeric strings.
* Fixed pow(), and added finite(), isinf(), and isnan(). Also fixedjim winstead2002-01-051-96/+65
| | | | | | | | | | | | pow() tests. @- Fixed pow(), and added finite(), isinf(), and isnan(). (Jim) # Jeroen was on crack, and apparently flunked arithmetic. Names of new # functions subject to change if people get persnickety about them. # (They're currently the same as the underlying C library function # names. Hope nobody forgets to update the tests if they change the # names.) # Oh, and pow() uses the new parameter-passing API now.
* - Let ceil also return a float in every caseDerick Rethans2001-12-221-1/+2
|
* - Fix for bug #14646, floor() always returns a float now.Derick Rethans2001-12-211-2/+2
|
* - Fix for bug #14544, bogus warning in pow()Derick Rethans2001-12-161-1/+1
| | | | | #- I think I do not need to tell who screwed this up....
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* Make _php_math_number_format available from shared extensionsFrank M. Kromann2001-12-031-4/+1
|
* 5th and probably/hopefully last run of conv_z_macrosJeroen van Wolffelaar2001-09-261-1/+1
|
* proto fixes "double" -> "float"Hartmut Holzgraefe2001-09-211-27/+27
|
* Rework some string-to-number and vice-versa functions to work smarterSascha Schumann2001-09-201-66/+38
| | | | | | (e.g. without using functions that use slow locales, without allocating extra memory and with fewer integer/float operations)
* quickly fix newly introdued off-by-oneSascha Schumann2001-09-191-1/+1
|
* Rewrite _php_match_basetozval to need only one multiplicationSascha Schumann2001-09-191-31/+27
| | | | | per iteration and avoid the U?LONG_MAX hassle.
* another attempt at fixing compile warnings...Sterling Hughes2001-09-181-3/+3
|
* hopefully fix win32 compile warningsSterling Hughes2001-09-181-1/+1
| | | | | # I really wish i had a box to compile php with win32 on
* - Don't wrap lines... this is annoying while coding.Derick Rethans2001-09-091-2/+2
|
* Add _php_math_zvaltobase and _php_math_basetozvalStanislav Malyshev2001-09-031-13/+133
| | | | | | | | This allows to use bindec, etc. functions to convert numbers longer than fits in long, using floats instead. Note: the functions like decbin still don't use the zval-ed functions, so they work only on longs yet.
* Remove cbrt also, and mark logm1 and exp1p as expermintalJeroen van Wolffelaar2001-08-151-21/+12
|
* MF407Jeroen van Wolffelaar2001-08-151-53/+0
|
* WhitespaceZeev Suraski2001-08-111-30/+30
|
* Bugfix in abs(), abs(LONG_MIN) was bogusJeroen van Wolffelaar2001-08-051-11/+6
|
* Check that _php_math_basetolong result fits long (by request from Troels Arvin)Stanislav Malyshev2001-08-051-0/+4
|
* - TSRMLS_FETCH workZeev Suraski2001-08-051-1/+2
| | | | | - whitespace fixes
* Another bugfix in pow. Special cases, with 10 times the same thing areJeroen van Wolffelaar2001-08-041-1/+2
| | | | | _so_ error_prone... :(
* Kill a warningRasmus Lerdorf2001-08-041-2/+2
|
* Bugfix. All tests pass now on my systemJeroen van Wolffelaar2001-08-041-0/+8
|
* - A little bit cleaning of pow(), and 12 bytes less memory (wow)Jeroen van Wolffelaar2001-08-041-12/+14
|
* #- HTML-safe error for pow()Jeroen van Wolffelaar2001-08-031-2/+2
|
* - New pow() function. It now gives warnings on wrong input, andJeroen van Wolffelaar2001-08-031-7/+101
| | | | | | | returns integer result when possible @- New pow() implementation, which returns an integer when possible, @ and warnings on wrong input (jeroen)
* These new math functions are not supported on Win32Frank M. Kromann2001-08-011-0/+11
|
* - Added a few new math functions from Jesus Castagnetto.Andrei Zmievski2001-08-011-71/+292
| | | | | | - Converted to Z_* macros. @- Added a few new math functions. (Jesus)
* 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-0/+1
| | | | | some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
* - Fix copyright notices with 2001Andi Gutmans2001-02-261-1/+1
|
* update my email.Thies C. Arntzen2000-10-291-1/+1
|
* Making _php_math_longtobase() and _php_math_basetolong() callable from DLL ↵Frank M. Kromann2000-10-271-2/+2
| | | | and SO modules
* Fix decbinStanislav Malyshev2000-09-171-1/+1
|
* fix for bug #5672Hartmut Holzgraefe2000-07-301-5/+4
|
* Changed lots of PHP 3 licence headers to PHP 4, mainly in .h files.David Croft2000-07-241-1/+1
| | | | | | | | | Added a few RCS $Id$ tags. # Note: I have avoided changing any .h files if the corresponding .c file # had not already been changed as I am not sure if there are any legal # issues here. So some extensions still have PHP 3 headers.