summaryrefslogtreecommitdiff
path: root/psi/zmath.c
Commit message (Collapse)AuthorAgeFilesLines
* Update postal address in file headersChris Liddell2023-04-041-3/+3
|
* Update copyright to 2021Chris Liddell2021-03-151-1/+1
|
* Update copyright to 2020Chris Liddell2020-04-101-1/+1
|
* PS interpreter some 64-bit integer fixesKen Sharp2020-03-081-1/+1
| | | | | | | | | | | | | | | | | | Bug #702194 "cvi produces incorrect results" This was simply caused by a cast through long. However its not enough merely to change the cast, we must also check for running in CPSI mode and throw an error if the returned integer cannot be represented in a 32-bit word, for compatibility with test suites. In addition (see bug #702134) when exp throws an undefinedresult error delay setting the stack variable until after we have tested the result, so that we do not end up returning a INF on the stack, as is done in other code paths which check for NaN and INF. Thirdly; in div cater for the case of an integer divided by a real and check the result for NaN and INF (as the other cases do). This now properly throws an error and does not return NaN or INF on the stack.
* Update source/header file copyright notice to 2019Chris Liddell2019-01-161-1/+1
|
* PS interpreter - check infinite result on exp, where possibleKen Sharp2018-11-151-0/+4
| | | | | | | | | | Bug #700181 "using exp with 0 as base" (again) The reporter for the bug failed to mention this condition in the original report. Technically we don't always have isinf() available (I suspect all real compilers do these days) but where we do we can check the result. Where we don't, we're stuck. This mimics the behaviour of other math operations in Ghostscript.
* PS interpreter - Throw error from exp when base is 0 and -ve exponentKen Sharp2018-11-141-0/+2
| | | | | | | Bug #700181 "using exp with 0 as base" If base is 0, and exp is negative, then the result of exp is undefined we should throw an error instead of pushing #INF.0 on the stack.
* Update copyright notice with new head office address.Ken Sharp2018-01-301-3/+3
| | | | | | | | | Also update copyright dates. Remove gs_cmdl.ps as we no longer use it, and remove its entry from psfiles.htm. Remove xfonts.htm as this feature (xfont support) is long, long gone.
* Commit of build_consolidation branchChris Liddell2015-07-201-0/+275
Squashed into one commit (see branch for details of the evolution of the branch). This brings gpcl6 and gxps into the Ghostscript build system, and a shared set of graphics library object files for all the interpreters. Also, brings the same configuration options to the pcl and xps products as we have for Ghostscript.