aboutsummaryrefslogtreecommitdiff
path: root/src/proj_math.h
AgeCommit message (Collapse)Author
2018-05-23Merge branch 'master' into return-nans-quicklyKristian Evers
2018-05-19Undef isnan if already defined before redefining it (typically with MSVC)Even Rouault
2018-05-08Add round() and lround() to proj_math.hKristian Evers
2018-05-08Add NAN definition to proj_math.hKristian Evers
2018-04-30Move include of math.h inside include guard.Kurt Schwehr
No reason to include math.h more times. And balance whitespace a bit
2018-04-23Add isnan() to proj_math.hKristian Evers
Code updated to use isnan() instead of pj_is_nan().
2018-04-16Collect custom C99 math functions in proj_math.hKristian Evers
We are relying more and more on C99 math functions. On C89 systems where those functions are not available our own custom versions of those functions are used instead. So far these has been spread across the code base. This commit gathers them in the same file and introduces the proj_math.h header. The build system checks for C99 math functions. If not found the proj_math.h header make sure that C99 functions are defined as their pj_ equivalent. Ideally proj_math.h is included instead of math.h. This removes the need for any checks against HAVE_C99_MATH in the code making it easier to read. For this commit the functions hypot, log1p and asinh has been taken care of.