aboutsummaryrefslogtreecommitdiff
path: root/src/pj_math.c
AgeCommit message (Collapse)Author
2018-05-23Add pj_isnan to proj.def to avoid linking errors for some MSVC versionsKristian Evers
2018-05-08Add round() and lround() to proj_math.hKristian Evers
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.