some missing math.h functions and macros in math.pxd

Found some math functions and macros missing and decided to fix them.

There's also a bunch of C99 macros that I'd like to have, in particular `isfinite` and `isnan`, but these are supposed to operate on any floating-point type. What's the correct way of declaring them as functions? Maybe specialize them for the various float types?