fasttotint added so that intrinsics which can quickly convert doubles smaller than 2^24 to long can be used by trig funtions
trig reduction uses fasttoint