This is copied from nw\math.h
AbuseMath should swich to using nw\math.h as soon as possible.