move D_PNAN/D_PINF/etc constants into static defines