reimplement is_finite with platform functions; remove unused denorm tests
use our own infinity test
Merge branch 'isfinite-fix'